From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30687 invoked by alias); 3 Jun 2003 13:14:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 30621 invoked by alias); 3 Jun 2003 13:14:07 -0000 Date: Tue, 03 Jun 2003 13:14:00 -0000 Message-ID: <20030603131407.30617.qmail@sources.redhat.com> From: "numerical.simulation@web.de" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20030603102315.11077.numerical.simulation@web.de> References: <20030603102315.11077.numerical.simulation@web.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/11077] enumerator value in template not assignable from bool X-Bugzilla-Reason: CC X-SW-Source: 2003-06/txt/msg00464.txt.bz2 List-Id: 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(0)) > > instead of > > sizeof(check(0)) Nope, with the workaround You get an ICE: [...] enum { value = (sizeof(has_member_disambiguation::template check(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': /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