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: unassig...@gcc.gnu.org ReportedBy: g...@gcc.gnu.org CC: ja...@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