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 numerical.simulation@web.de  2003-06-03 13:14 -------
Subject: Re:  enumerator value in template not assignable from 
 bool

"reichelt@gcc.gnu.org" wrote:

> This is essentially the same problem as in PR 9259.
> Even Giovanni's workaround is applicable here: Write
>
> sizeof(has_member_disambiguation::template check<T>(0))
>
> instead of
>
> sizeof(check<T>(0))

Nope, with the workaround You get an ICE:

[...]
 enum { value = (sizeof(has_member_disambiguation::template check<T>(0)) == 1) };
[...]


g++ ~/hp-home/C++/EXPERIMENTAL/GCC-3.4-Bugs.C
/home/markus/hp-home/C++/EXPERIMENTAL/GCC-3.4-Bugs.C: In instantiation of `has_member_disambiguation<A>':
/home/markus/hp-home/C++/EXPERIMENTAL/GCC-3.4-Bugs.C:24:   instantiated from here
/home/markus/hp-home/C++/EXPERIMENTAL/GCC-3.4-Bugs.C:11: internal compiler error: Segmentation
   fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/softwa


Markus





------- 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]