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

"bangerth at dealii dot org" <[EMAIL PROTECTED]> writes:

| Intuitively, C++ treats unnamed enums differently than named ones, because 
| in templates the function/class name has to be mangled, and will contain 
| the name of the template arguments. If the template argument doesn't have 
| a name, then the compiler can't do its job, so the standard chose to 
| disallow unnamed enums as template arguments. 
|  

I know what the standard says, but the arguments used to make that rule
are bogus.  Those are on my list of things to fix for C++0x.
If it were only mnagling, then the compiler can concoct a unique name
for manglaing purposes.

-- Gaby


-- 


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

Reply via email to