This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50755] New: [ICE]: tree check: expected class 'constant', have 'unary' (convert_expr)
- From: "gjl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 17 Oct 2011 09:14:16 +0000
- Subject: [Bug c++/50755] New: [ICE]: tree check: expected class 'constant', have 'unary' (convert_expr)
- Auto-submitted: auto-generated
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