This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11077] enumerator value in template not assignable from bool
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jun 2003 13:23:20 -0000
- Subject: [Bug c++/11077] enumerator value in template not assignable from bool
- References: <20030603102315.11077.numerical.simulation@web.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11077
------- Additional Comments From pinskia@physics.uc.edu 2003-06-03 13:23 -------
Actually with the workaround I do not get an ICE but on 3.3.1 (20030526) the code is accepted but
on the mainline (20030603) it is rejected:
tin:~/src/gnu/gcctest>~/ia32_linux_gcc3_3/bin/gcc pr11077.cc -c
tin:~/src/gnu/gcctest>gcc pr11077.cc -c
pr11077.cc:13: error: expected primary-expression
pr11077.cc: In instantiation of `has_member_disambiguation<A>':
pr11077.cc:26: instantiated from here
pr11077.cc:13: error: enumerator value for `value' not integer constant
pr11077.cc: In instantiation of `has_member_disambiguation<B>':
pr11077.cc:27: instantiated from here
pr11077.cc:13: error: enumerator value for `value' not integer constant
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.