http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59350
Bug ID: 59350 Summary: [4.9 regression] ICE: in vt_expand_var_loc_chain, at var-tracking.c:8212 Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: dimhen at gmail dot com Fedora 19 x86_64 r205459 PASS r205527 FAIL $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/local/gcc_current/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /home/dimhen/src/gcc_current/configure --prefix=/usr/local/gcc_current --with-multilib-list=m64 --enable-checking=yes,df,fold,rtl,tree --enable-languages=c,c++,lto --enable-plugin --with-tune=native --with-arch=native --enable-version-specific-runtime-libs Thread model: posix gcc version 4.9.0 20131129 (experimental) [trunk revision 205527] (GCC) $ cat x.ii struct A { int LLVMTy; } a; class B; class C { B *Node; int ResNo; public: A m_fn1() const; void m_fn2() { m_fn1(); } }; class D { void *Ptr; int IROrder; }; class F { public: void m_fn1(int, D, A, C); }; void fn1(); class B { int NumValues; public: void m_fn1(int) { NumValues ? static_cast<void>(0) : fn1(); } }; $ g++ -fpreprocessed -O1 -g -c x.ii -o x.o x.ii: In function 'void fn2(C)': x.ii:31:1: internal compiler error: in vt_expand_var_loc_chain, at var-tracking.c:8212 } ^ 0xf2e719 vt_expand_var_loc_chain /home/dimhen/src/gcc_current/gcc/var-tracking.c:8212 0xf2e719 vt_expand_loc_callback /home/dimhen/src/gcc_current/gcc/var-tracking.c:8408 0x93d7b7 cselib_expand_value_rtx_1 /home/dimhen/src/gcc_current/gcc/cselib.c:1684 0x93e6de cselib_expand_value_rtx_cb(rtx_def*, bitmap_head_def*, int, rtx_def* (*)(rtx_def*, bitmap_head_def*, int, void*), void*) /home/dimhen/src/gcc_current/gcc/cselib.c:1531 0xf2d9fc vt_expand_loc_callback /home/dimhen/src/gcc_current/gcc/var-tracking.c:8344 0x93d8a9 cselib_expand_value_rtx_1 /home/dimhen/src/gcc_current/gcc/cselib.c:1649 0x93e6de cselib_expand_value_rtx_cb(rtx_def*, bitmap_head_def*, int, rtx_def* (*)(rtx_def*, bitmap_head_def*, int, void*), void*) /home/dimhen/src/gcc_current/gcc/cselib.c:1531 0xf2de17 vt_expand_var_loc_chain /home/dimhen/src/gcc_current/gcc/var-tracking.c:8246 0xf2de17 vt_expand_loc_callback /home/dimhen/src/gcc_current/gcc/var-tracking.c:8408 0x93d7b7 cselib_expand_value_rtx_1 /home/dimhen/src/gcc_current/gcc/cselib.c:1684 0x93e6de cselib_expand_value_rtx_cb(rtx_def*, bitmap_head_def*, int, rtx_def* (*)(rtx_def*, bitmap_head_def*, int, void*), void*) /home/dimhen/src/gcc_current/gcc/cselib.c:1531 0xf2de17 vt_expand_var_loc_chain /home/dimhen/src/gcc_current/gcc/var-tracking.c:8246 0xf2de17 vt_expand_loc_callback /home/dimhen/src/gcc_current/gcc/var-tracking.c:8408 0x93e6de cselib_expand_value_rtx_cb(rtx_def*, bitmap_head_def*, int, rtx_def* (*)(rtx_def*, bitmap_head_def*, int, void*), void*) /home/dimhen/src/gcc_current/gcc/cselib.c:1531 0xf2de17 vt_expand_var_loc_chain /home/dimhen/src/gcc_current/gcc/var-tracking.c:8246 0xf2de17 vt_expand_loc_callback /home/dimhen/src/gcc_current/gcc/var-tracking.c:8408 0x93d7b7 cselib_expand_value_rtx_1 /home/dimhen/src/gcc_current/gcc/cselib.c:1684 0x93e6de cselib_expand_value_rtx_cb(rtx_def*, bitmap_head_def*, int, rtx_def* (*)(rtx_def*, bitmap_head_def*, int, void*), void*) /home/dimhen/src/gcc_current/gcc/cselib.c:1531 0xf22658 vt_expand_var_loc_chain /home/dimhen/src/gcc_current/gcc/var-tracking.c:8246 0xf22658 vt_expand_1pvar /home/dimhen/src/gcc_current/gcc/var-tracking.c:8521 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions.