This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20589] error: '<anonymous enum>' is/uses anonymous type'
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Mar 2005 03:18:29 -0000
- Subject: [Bug c++/20589] error: '<anonymous enum>' is/uses anonymous type'
- References: <20050322154540.20589.caolanm@redhat.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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