This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/44871] Invalid type mismatches while merging C and C++ sources
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jul 2010 12:42:15 -0000
- Subject: [Bug c++/44871] Invalid type mismatches while merging C and C++ sources
- References: <bug-44871-176@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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