[Bug c/93072] New: ICE: Segmentation fault

anbu1024.me at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Dec 25 13:47:00 GMT 2019


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

            Bug ID: 93072
           Summary: ICE: Segmentation fault
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: anbu1024.me at gmail dot com
  Target Milestone: ---

$ cat test.c 


void foo ( void ) { } 

static void bar ( void ) 
{ 
    inline void foo ( void ) ; 

    if ( foo == 0 ) ; 
} 

--------------------------------------------------------------------------------

$ gcc-snapshot10 --version
gcc (GCC) 10.0.0 20191201 (experimental)
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

--------------------------------------------------------------------------------

$ gcc-snapshot10 test.c 
test.c: In function ‘bar’:
test.c:5:13: internal compiler error: Segmentation fault
    5 | static void bar ( void )
      |             ^~~
0xd5be5f crash_signal
        ../../gcc-10-20191201/gcc/toplev.c:328
0xab2547 contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
        ../../gcc-10-20191201/gcc/tree.h:3386
0xab2547 unshare_body
        ../../gcc-10-20191201/gcc/gimplify.c:955
0xab25e9 unshare_body
        ../../gcc-10-20191201/gcc/gimplify.c:962
0xad76c2 gimplify_body(tree_node*, bool)
        ../../gcc-10-20191201/gcc/gimplify.c:14601
0xad7b33 gimplify_function_tree(tree_node*)
        ../../gcc-10-20191201/gcc/gimplify.c:14757
0x923eb7 cgraph_node::analyze()
        ../../gcc-10-20191201/gcc/cgraphunit.c:669
0x9268ef analyze_functions
        ../../gcc-10-20191201/gcc/cgraphunit.c:1212
0x9274a2 symbol_table::finalize_compilation_unit()
        ../../gcc-10-20191201/gcc/cgraphunit.c:2925
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.


More information about the Gcc-bugs mailing list