From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10536 invoked by alias); 27 Feb 2010 14:06:55 -0000 Received: (qmail 10375 invoked by uid 48); 27 Feb 2010 14:06:39 -0000 Date: Sat, 27 Feb 2010 14:06:00 -0000 Message-ID: <20100227140639.10374.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/20623] ICE: fold check: original tree changed by fold with --enable-checking=fold In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "zsojka at seznam dot cz" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-02/txt/msg02756.txt.bz2 ------- Comment #40 from zsojka at seznam dot cz 2010-02-27 14:06 ------- Follown file fails at all opt levels at both x86_64 and i?86: ---------- testcase.cpp ---------- namespace { bool bar(int i) { return i; } } int foo(int i) { return bar(i) ? i : 0; } ---------------------------------- It was reduced from dyncast.cc (bootstrap fails there). $ /mnt/sdb1/build-157106-checking-fold/gcc/cc1plus -O1 testcase.cpp bool::bar(int) int foo(int) Analyzing compilation unit Performing interprocedural optimizations <*free_lang_data> Assembling functions: int foo(int) testcase.cpp: In function ‘int foo(int)’: testcase.cpp:4:5: internal compiler error: fold check: original tree changed by fold Please submit a full bug report, with preprocessed source if appropriate. See for instructions. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20623