http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46368
Summary: [4.6 Regression] ICE in make_decl_rtl, at varasm.c:1033 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: middle-end AssignedTo: unassig...@gcc.gnu.org ReportedBy: rgue...@gcc.gnu.org Target: i?86-*-linux Created attachment 22324 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22324 preprocessed source The package yast2-pkg-bindings fails to build with g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/YaST2 -DY2LOG=\"Pkg\" -DSUSEVERSION=\"\" -DLOCALEDIR=\"/usr/share/YaST2/locale\" -fno-inline -Woverloaded-virtual -DZYPP_BASE_LOGGER_LOGGROUP=\"Pkg\" -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -DNDEBUG -std=gnu++0x -DHAVE_CXX0X -Wall -Wformat=2 -MT Package.lo -MD -MP -MF .deps/Package.Tpo -c Package.cc -fPIC -DPIC -o .libs/Package.o Package.cc: In member function 'YCPValue PkgFunctions::GetPackages(const YCPSymbol&, const YCPBoolean&)': Package.cc:1489:58: internal compiler error: in make_decl_rtl, at varasm.c:1033 Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.opensuse.org/> for instructions. where the preprocessed source shows plain -O0 is enough to trigger the bug: > ./cc1plus -quiet ~/Package.ii -o /dev/null -m32 -std=gnu++0x Package.cc: In member function 'YCPValue PkgFunctions::GetPackages(const YCPSymbol&, const YCPBoolean&)': Package.cc:1489:58: internal compiler error: in make_decl_rtl, at varasm.c:1033 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. (gdb) call debug_tree (decl) <var_decl 0x7ffff134a5a0 D.204121 type <record_type 0x7ffff0123c78 YCPNull type_5 QI size <integer_cst 0x7ffff7ed34b0 constant 8> unit size <integer_cst 0x7ffff7ed34d8 constant 1> align 8 symtab 0 alias set -1 canonical type 0x7ffff0123c78 fields <type_decl 0x7ffff0109508 YCPNull type <record_type 0x7ffff0123d20 YCPNull> nonlocal decl_4 VOID file /usr/include/YaST2/ycp/YCPElement.h line 124 col 15 align 1 context <record_type 0x7ffff0123c78 YCPNull> result <record_type 0x7ffff0123c78 YCPNull> > context <translation_unit_decl 0x7ffff7edf958 D.1> full-name "class YCPNull" X() X(constX&) this=(X&) n_parents=0 use_template=0 interface-unknown pointer_to_this <pointer_type 0x7ffff02f4bd0> reference_to_this <reference_type 0x7ffff02ed150> chain <type_decl 0x7ffff0111cf0 YCPNull>> addressable ignored QI file /usr/include/YaST2/ycp/YCPValue.h line 288 col 75 size <integer_cst 0x7ffff7ed34b0 8> unit size <integer_cst 0x7ffff7ed34d8 1> align 8 context <function_decl 0x7fffeec4e700 PkgCommit> chain <var_decl 0x7fffee3b2a00 D.230722>> (gdb) call debug_gimple_stmt (stmt) D.266801_72 = &D.204121;