[Bug c++/20589] error: '<anonymous enum>' is/uses anonymous type'
mark at codesourcery dot com
gcc-bugzilla@gcc.gnu.org
Fri Aug 5 03:49:00 GMT 2005
------- Additional Comments From mark at codesourcery dot com 2005-08-05 03:49 -------
Subject: Re: error: '<anonymous enum>' is/uses anonymous type'
sethml at google dot com wrote:
> ------- Additional Comments From sethml at google dot com 2005-08-05 03:43 -------
> The C++ working group examined this issue in April as core language issue 488:
> http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#488
>
> They tentatively concluded that type deduction should fail in this case, leaving
> the built-in operator==(int,int) version as the only viable candidate and thus
> the code attached to this bug report would compile.
>
> It seems likely that this decision will hold, that the standard will be
> clarified, making this code valid.
>
> Can we get this bug re-opened, and perhaps change GCC 4 to accept this code in
> anticipation of the C++ standard changing to explicitly allow it?
Our normal practice has been not to do that until the issue is in at
least WP status.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20589
More information about the Gcc-bugs
mailing list