This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Bugfix request
- From: Piotr Wyderski <piotr dot wyderski at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 25 May 2009 17:06:39 +0200
- Subject: Bugfix request
Hello,
I would like to kindly ask somebody to fix PR38064,
as the bug is very annoying -- it makes the use of
enum class virtually impossible. Most of my "GCCBUG"
workaround comments refer to this one.
For a quick reference:
enum class E { elem };
int main()
{
E e = E::elem;
if (e == E::elem);
return 1;
}
g++ -std=c++0x tc1.cpp
tc1.cpp: In function 'int main()':
tc1.cpp:6: error: invalid operands of types 'E' and 'E' to binary 'operator=='
Best regards
Piotr Wyderski