[Bug c++/20589] error: '<anonymous enum>' is/uses anonymous type'

gdr at integrable-solutions dot net gcc-bugzilla@gcc.gnu.org
Sun Mar 27 03:18:00 GMT 2005


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



More information about the Gcc-bugs mailing list