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: "sethml at google dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Aug 2005 03:43:37 -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 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?
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |sethml at google dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20589