------- Comment #7 from rguenth at gcc dot gnu dot org 2010-07-09 12:42 ------- The hard part with changing the C frontend to behave like the C++ frontend is to preserve the debug info for the typedef.
The C frontend consistently uses DECL_ORIGINAL_TYPE to refer to what a TYPE_DECL was typedeffed to, but the C++ FE again does not use this for typedef struct { } T1; (but it does for typedef struct X { } T1;). -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Component|lto |c++ http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44871