From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22586 invoked by alias); 17 Oct 2011 09:14:37 -0000 Received: (qmail 22568 invoked by uid 22791); 17 Oct 2011 09:14:34 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 17 Oct 2011 09:14:20 +0000 From: "gjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/50755] New: [ICE]: tree check: expected class 'constant', have 'unary' (convert_expr) Date: Mon, 17 Oct 2011 09:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: gjl at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2011-10/txt/msg01588.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50755 Bug #: 50755 Summary: [ICE]: tree check: expected class 'constant', have 'unary' (convert_expr) Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: gjl@gcc.gnu.org CC: jason@gcc.gnu.org Target: avr Build: x86-pc-linux-gnu Following test case runs into ICE with trunk r180076: avr-g++ -v ./gcc/testsuite/g++.dg/template/constant2.C -S -mmcu=atmega128 -o constant2.s Using built-in specs. Configured with: ../../gcc.gnu.org/trunk/configure --target=avr --prefix=/local/gnu/install/gcc-4.7 --disable-nls --disable-shared --enable-languages=c,c++ --with-dwarf2 --disable-lto --enable-checking=yes,rtl Thread model: single gcc version 4.7.0 20111017 (experimental) (GCC) GNU C++ (GCC) version 4.7.0 20111017 (experimental) (avr) compiled by GNU C version 4.3.2 [gcc-4_3-branch revision 141291], GMP version 5.0.1, MPFR version 3.0.0-p8, MPC version 0.8.2 ./gcc/testsuite/g++.dg/template/constant2.C:6:35: internal compiler error: tree check: expected class 'constant', have 'unary' (convert_expr) in warnings_for_convert_and_check, at c-family/c-common.c:2211