[Bug debug/16063] Debuggers need more information about enum types in C++

tromey at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jun 29 13:51:00 GMT 2012


Tom Tromey <tromey at gcc dot gnu.org> changed:

           What    |Removed                     |Added
                 CC|                            |tromey at gcc dot gnu.org

--- Comment #5 from Tom Tromey <tromey at gcc dot gnu.org> 2012-06-29 13:50:49 UTC ---
DWARF 4 allows this:

The enumeration type entry may have a DW_AT_type attribute which refers to the
data type used to implement the enumeration.

I think this is definitely needed for "enum class", where the base
type can be specified by the user.
However, emitting it unconditionally wouldn't hurt.

More information about the Gcc-bugs mailing list