[Bug c++/21514] [DR 278] templates and anonymous enum
-- What|Removed |Added Status|NEW |SUSPENDED Summary|templates and anonymous enum|[DR 278] templates and ||anonymous enum http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21514
[Bug c++/21514] [DR 278] templates and anonymous enum
--- 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" <[EMAIL PROTECTED]> 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
[Bug c++/21514] [DR 278] templates and anonymous enum
--- Additional Comments From papadopo at shfj dot cea dot fr 2005-05-18 14:56 --- I guess what I meant is: whatever the reason for this error message and whatever the eventual decision taken about it, it would be nice to have an error message that really means something to end-users. For example, as an end-user, I still can't understand the difference between the explicit cast and the implicit (non-)cast, why it works in the first case and not in the latter. The error message shoudl really point at what's wrong in the source code, not at what's wrong in the C++ standard. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21514
[Bug c++/21514] [DR 278] templates and anonymous enum
--- Additional Comments From pcarlini at suse dot de 2005-05-18 15:00 --- > .. The error message shoudl really point at what's wrong in the > source code, not at what's wrong in the C++ standard. But unfortunately if the compiler is conforming, and the latter is wrong, the former is "correct" as-is and the error message too ;) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21514
[Bug c++/21514] [DR 278] templates and anonymous enum
--- Additional Comments From gdr at integrable-solutions dot net 2005-05-18 15:07 --- Subject: Re: [DR 278] templates and anonymous enum "papadopo at shfj dot cea dot fr" <[EMAIL PROTECTED]> writes: | I guess what I meant is: whatever the reason for this error message | and whatever the eventual decision taken about it, it would be nice | to have an error message that really means something to end-users. 100% agreed. -- Gaby -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21514
[Bug c++/21514] [DR 278] templates and anonymous enum
--- Additional Comments From papadopo at shfj dot cea dot fr 2005-05-18 15:13 --- OK, then what I really meant is that error message doesn't mean anything in plain English, thus it doesn't mean anything to end-users. So it needs to be improved. I understand it's not easy - after all no one here is able to explain what really is behind this bug. I'm not a native speaker, I'm just a rather skilled end-user; I can nevertheless guarantee that end-users don't understand this error message. We spent a few hours trying and finding what needs to be changed in some 3rd party library we're using, because the compiler was pointing to a totally unrelated template definition of operator<< in our own sources. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21514
[Bug c++/21514] [DR 278] templates and anonymous enum
--- Additional Comments From gdr at integrable-solutions dot net 2005-05-18 17:08 --- Subject: Re: [DR 278] templates and anonymous enum "pcarlini at suse dot de" <[EMAIL PROTECTED]> writes: | > .. The error message shoudl really point at what's wrong in the | > source code, not at what's wrong in the C++ standard. | | But unfortunately if the compiler is conforming, and the latter is wrong, | the former is "correct" as-is and the error message too ;) I think his point is that the diagnostic message is not helpful. And I agree with him. -- Gaby -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21514
[Bug c++/21514] [DR 278] templates and anonymous enum
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-21 18:01 --- *** Bug 21701 has been marked as a duplicate of this bug. *** -- What|Removed |Added CC||mmarcus at emarcus dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21514
[Bug c++/21514] [DR 278] templates and anonymous enum
--- Additional Comments From ebotcazou at gcc dot gnu dot org 2005-05-31 16:55 --- Not specific to sparc-sun-solaris2.8. -- What|Removed |Added GCC build triplet|sparc-sun-solaris2.8| GCC host triplet|sparc-sun-solaris2.8| GCC target triplet|sparc-sun-solaris2.8|s http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21514
[Bug c++/21514] [DR 278] templates and anonymous enum
--- Additional Comments From mmitchel at gcc dot gnu dot org 2005-09-15 21:31 --- Why is this marked as DR 278? I think it's DR 488. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21514
[Bug c++/21514] [DR 278] templates and anonymous enum
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-15 19:48 --- *** Bug 22505 has been marked as a duplicate of this bug. *** -- What|Removed |Added CC||snoonan at nvidia dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21514