This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/11078] [ABI] ICE in write_type with typeof and templates


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]