|
Mantis - GCC-XML
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 9915 | major | always | 2009-11-18 06:40 | 2009-11-18 16:49 | |
|
|
|||||
| Reporter: | Gustavo J. A. M. Carneiro | Platform: | |||
| Assigned To: | Brad King | OS: | |||
| Priority: | normal | OS Version: | |||
| Status: | closed | Product Version: | |||
| Product Build: | Resolution: | suspended | |||
| Projection: | none | ||||
| ETA: | none | Fixed in Version: | |||
|
|
|||||
| Summary: | 0009915: parameter default value parsed wrong with template class | ||||
| Description: |
A simple constructor: Test (Time lifetime = MilliSeconds (0)); In this case, MilliSeconds is a function that returns Time, which is a templated instantiation class. GCC-XML reports the default value as default="MilliSeconds(uint64_t)()", which is clearly wrong. After going through pygccxml, what I get is MilliSeconds(). |
||||
| Steps To Reproduce: | |||||
| Additional Information: |
A bug I found in NS-3 (www.nsnam.org) Python bindings. To reproduce, parse the attached test file: $ gccxml -I . -fxml=/tmp/test.xml test.h $ grep /tmp/test.xml -e Constructor -A10 |grep Milli <Argument name="lifetime" type="_89" location="f2:21" file="f2" line="21" default="MilliSeconds(uint64_t)()"/> |
||||
| Relationships | |||||
| Attached Files: |
|
||||
|
|
|||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2009-11-18 06:40 | Gustavo J. A. M. Carneiro | New Issue | |||
| 2009-11-18 06:40 | Gustavo J. A. M. Carneiro | File Added: test.h | |||
| 2009-11-18 15:28 | Roman Yakovenko | Note Added: 0018478 | |||
| 2009-11-18 15:33 | Roman Yakovenko | Note Edited: 0018478 | |||
| 2009-11-18 16:41 | Brad King | Status | new => assigned | ||
| 2009-11-18 16:41 | Brad King | Assigned To | => Brad King | ||
| 2009-11-18 16:48 | Brad King | Note Added: 0018483 | |||
| 2009-11-18 16:49 | Brad King | Status | assigned => closed | ||
| 2009-11-18 16:49 | Brad King | Resolution | open => suspended | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||