This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11078] [ABI] ICE in write_type with typeof and templates
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Aug 2004 21:40:25 -0000
- Subject: [Bug c++/11078] [ABI] ICE in write_type with typeof and templates
- References: <20030603112812.11078.jtotland1@chello.no>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-08-03 21:40 -------
Fortunately, the example in comment #12 just became illegal on mainline.
We now get this:
x.cc:3: error: non-local variable `<anonymous struct> a' uses anonymous type
x.cc:12: error: non-local variable `<anonymous struct> b' uses anonymous type
That's good, because I can think of all kinds of unpleasant surprises if
you declare such variables in header files, where they may get different
internal names dependending on the translation units that includes them.
If such names are taken over into mangled names, this is asking for big
trouble.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11078