This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21514] [DR 278] templates and anonymous enum
- 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: 18 May 2005 14:04:28 -0000
- Subject: [Bug c++/21514] [DR 278] templates and anonymous enum
- References: <20050511141210.21514.papadopo@shfj.cea.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gdr at integrable-solutions dot net 2005-05-18 14:04 -------
Subject: Re: templates and anonymous enum
"papadopo at shfj dot cea dot fr" <gcc-bugzilla@gcc.gnu.org> writes:
[...]
| Therefore:
|
| * Concerning 1.a) and 1.b) I'm not convinced this is related to Core Issue 278
| and external linkage since the explicit cast works. Anyway, if you feel Core
| Issue 278 or some paragraph of the standard forbid the implicit cast, I agree
| this bug report should be kept open until the comitee resolves the problem.
The way it is related is that the CWG has introduced the concent of
linkage for type -- which did not exist in ARM and existed only for
function type in C++98/03 and the unnamed enum no longer has an
external linkage. As I said on fr.comp.lang.c++, I brought the issue
to the C++ committee and I think the issue should not be closed.
The answer I gave you was much more detailed and accurate that what
you report here :-) -- in particular, the ocmpiler is attempting to do
overload resolution and it is in the phase of constructing the
overload set that the error appears. But, the whole thing is confused
:-)
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21514