[Bug tree-optimization/58447] New: ICE: verify_gimple failed tree-cfg.c:4819

dimhen at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Sep 17 17:22:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58447

            Bug ID: 58447
           Summary: ICE: verify_gimple failed tree-cfg.c:4819
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dimhen at gmail dot com

Created attachment 30838
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30838&action=edit
testcase

gcc-4.9 rev.202642
Fedora 19/x86_64

ICE with -O3
PASS with -O2

$ 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 20130917 (experimental) [trunk revision 202642] (GCC) 

$ g++ -fpreprocessed -O3 -c SmallVectorTest.ii
SmallVectorTest.ii: In member function ‘void
{anonymous}::Q<gtest_TypeParam_>::TestBody() [with gtest_TypeParam_ =
N<{anonymous}::M>]’:
SmallVectorTest.ii:97:43: error: invalid PHI argument
 template <typename gtest_TypeParam_> void Q<gtest_TypeParam_>::TestBody() {
                                           ^
.MEM_22
SmallVectorTest.ii:97:43: error: incompatible types in PHI argument 0
int

void

e_lsm.27_29 = PHI <.MEM_22(3)>
SmallVectorTest.ii:97:43: internal compiler error: verify_gimple failed
0xc69c2d verify_gimple_in_cfg(function*)
    /home/dimhen/src/gcc_current/gcc/tree-cfg.c:4819
0xb4a677 execute_function_todo
    /home/dimhen/src/gcc_current/gcc/passes.c:1833
0xb4add7 execute_todo
    /home/dimhen/src/gcc_current/gcc/passes.c:1866
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.


More information about the Gcc-bugs mailing list