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++/20589] error: '<anonymous enum>' is/uses anonymous type'


------- Additional Comments From gdr at integrable-solutions dot net  2005-03-27 03:18 -------
Subject: Re:  error: '<anonymous enum>' is/uses anonymous type'

"bangerth at dealii dot org" <gcc-bugzilla@gcc.gnu.org> writes:

| Well, I wanted to give an "inuitive" reasoning. 

I understood that; I just don't think they are conclusive :-) 

| On the other hand, how do you propose to make up a unique name if an 
| unnamed enum is used in two different translation units as a template 
| argument? 

They are different types, therefore have different internal "names" --
like unnamed namespaces.

-- Gaby


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20589


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