This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/11077] enumerator value in template not assignable from bool


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]