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: "numerical dot simulation at web dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jun 2003 13:14:07 -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 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.