#821 ConfigParser violates strict aliasing rule
Metadata
| Property | Value |
|---|---|
| Reported by | Carsten Gräser (graeser@math.fu-berlin.de) |
| Reported at | Sep 15, 2010 19:59 |
| Type | Bug Report |
| Version | Git (pre2.4) [autotools] |
| Operating System | Unspecified / All |
| Last edited by | Oliver Sander (oliver.sander@tu-dresden.de) |
| Last edited at | Nov 14, 2011 10:07 |
| Closed by | Oliver Sander (oliver.sander@tu-dresden.de) |
| Closed at | Nov 14, 2011 10:07 |
| Closed in version | Unknown |
| Resolution | Fixed |
| Comment | The ConfigParser class is gone now, and with it the problem. |
Description
Since ConfigParser inherits from ParameterTree its subtrees are ParameterTrees. In order to have compatibility the sub() method returns a ConfigParser obtained by a static cast from the base class ParameterTree.
Although this seems OK (the derived class has the same memory layout) it violates the strict aliasing rule.