From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1222 invoked by alias); 19 Jul 2003 22:01:53 -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 1215 invoked by uid 48); 19 Jul 2003 22:01:53 -0000 Date: Sat, 19 Jul 2003 22:01:00 -0000 From: "weiss at sztaki dot hu" To: gcc-bugs@gcc.gnu.org Message-ID: <20030719220152.11596.weiss@sztaki.hu> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/11596] New: ICE with int templates X-Bugzilla-Reason: CC X-SW-Source: 2003-07/txt/msg02339.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=11596 Summary: ICE with int templates Product: gcc Version: 3.4 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: weiss at sztaki dot hu CC: gcc-bugs at gcc dot gnu dot org The following example causes an ICE: gonzo:~ # cat foo.cc template struct a { enum { value = D? A+B: A+C }; }; template struct b { // enum { value = a::value }; // compiles // enum { value = a::value }; // compiles as well // enum { value = a<1,A,A>::value }; // compiles as well enum { value = a<1,1,A>::value }; // ICE }; int main() { return b<1>::value; } gonzo:~ # g++-cvs -v Reading specs from /gml/shared/gcc-cvs/lib/gcc-lib/i686-pc-linux-gnu/3.4/specs Configured with: ../gcc/configure --prefix=/gml/shared/gcc-cvs --enable-shared --enable-languages=c,c++ --enable-threads=posix Thread model: posix gcc version 3.4 20030719 (experimental) gonzo:~ # g++-cvs foo.cc foo.cc:14: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions.