https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65495

            Bug ID: 65495
           Summary: ICE: chkp_make_addressed_object_bounds: Unexpected
                    tree code const_decl with -fcheck-pointer-bounds -mmpx
                    and fortran
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz

Created attachment 35074
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35074&action=edit
reduced testcase

Compiler output:
$ gcc -fcheck-pointer-bounds -mmpx testcase.f90 
testcase.f90:2:0:

       END
 ^
internal compiler error: chkp_make_addressed_object_bounds: Unexpected tree
code const_decl
0xd6d7c6 chkp_make_addressed_object_bounds
        /mnt/svn/gcc-trunk/gcc/tree-chkp.c:3384
0xd6ac4e chkp_find_bounds_1
        /mnt/svn/gcc-trunk/gcc/tree-chkp.c:3517
0xd6fae6 chkp_find_bounds
        /mnt/svn/gcc-trunk/gcc/tree-chkp.c:3555
0xd6fae6 chkp_add_bounds_to_call_stmt
        /mnt/svn/gcc-trunk/gcc/tree-chkp.c:1814
0xd6fae6 chkp_instrument_function
        /mnt/svn/gcc-trunk/gcc/tree-chkp.c:4139
0xd6fae6 chkp_execute
        /mnt/svn/gcc-trunk/gcc/tree-chkp.c:4323
0xd6fae6 execute
        /mnt/svn/gcc-trunk/gcc/tree-chkp.c:4380
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.

It seems almost any fortran code triggers this ICE.

$ gcc -v                                        
Using built-in specs.
COLLECT_GCC=/mnt/svn/gcc-trunk/binary-latest/bin/gcc
COLLECT_LTO_WRAPPER=/mnt/svn/gcc-trunk/binary-221530-lto-fortran-checking-yes-rtl-df/libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /mnt/svn/gcc-trunk//configure --enable-checking=yes,rtl,df
--enable-languages=c,c++,lto,fortran
--prefix=/mnt/svn/gcc-trunk/binary-221530-lto-fortran-checking-yes-rtl-df/
--without-cloog --without-ppl
Thread model: posix
gcc version 5.0.0 20150320 (experimental) (GCC) 

Tested revisions:
r221530 - ICE

Reply via email to