From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24588 invoked by alias); 18 Jul 2005 17:19:54 -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 24554 invoked by uid 48); 18 Jul 2005 17:19:46 -0000 Date: Mon, 18 Jul 2005 17:22:00 -0000 From: "emailwastefilter-bugzillagccorg at yahoo dot com" To: gcc-bugs@gcc.gnu.org Message-ID: <20050718171941.22551.emailwastefilter-bugzillagccorg@yahoo.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/22551] New: [ICE] in tree_low_cst, at tree.c:3843 X-Bugzilla-Reason: CC X-SW-Source: 2005-07/txt/msg02248.txt.bz2 List-Id: This code was distilled from debian source pose_3.5-7.dsc (The Palm OS Emulator). The bug manifests after a number of "warning: overflow in implicit constant conversion" and then "internal compiler error: in tree_low_cst, at tree.c:3843". There must be at least 5 warnings or the ICE does not appear. This Debian sid on an AMD64. g++-3.4 (gcc version 3.4.5 20050706 (prerelease) (Debian 3.4.4-5)) does NOT exhibit this bug. command line: $ g++-4.0 -c testcase.cpp output: testcase.cpp: In function 'int main(value_type)': testcase.cpp:12: warning: overflow in implicit constant conversion testcase.cpp:13: warning: overflow in implicit constant conversion testcase.cpp:14: warning: overflow in implicit constant conversion testcase.cpp:15: warning: overflow in implicit constant conversion testcase.cpp:16: warning: overflow in implicit constant conversion testcase.cpp:10: internal compiler error: in tree_low_cst, at tree.c:3843 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. For Debian GNU/Linux specific bug reporting instructions, see . --testcase.cpp-- typedef int value_type; const value_type b = 0x80000000; const value_type e1 = b + 1; const value_type e2 = b + 2; const value_type e3 = b + 3; const value_type e4 = b + 4; const value_type e5 = b + 5; int main (value_type error) { switch (error) { case e1: return 0; case e2: return 0; case e3: return 0; case e4: return 0; case e5: return 0; } } --testcase.cpp-- gcc -v: Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --enable-nls --without-included-gettext --enable-threads=posix --program-suffix=-4.0 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk-default --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --enable-checking=release x86_64-linux-gnu Thread model: posix gcc version 4.0.1 (Debian 4.0.1-2) -- Summary: [ICE] in tree_low_cst, at tree.c:3843 Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: emailwastefilter-bugzillagccorg at yahoo dot com CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22551