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

            Bug ID: 69137
           Summary: [6 Regression] ICE in odr_type_p, at ipa-utils.h:257
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
  Target Milestone: ---

Hello.

Following test case produces ICE:

$ cat tc.ii
typedef struct {
  typedef struct { } VarSelectorRecord; } Format14Cmap;
void fn1() { Format14Cmap a; }

$ c++ -flto tc.ii -march=native -std=gnu++0x -g
lto1: internal compiler error: in odr_type_p, at ipa-utils.h:257
0x620957 odr_type_p(tree_node const*)
        ../../gcc/ipa-utils.h:255
0x620957 lto_read_decls
        ../../gcc/lto/lto.c:1745
0x621a81 lto_file_finalize
        ../../gcc/lto/lto.c:2043
0x621a81 lto_create_files_from_ids
        ../../gcc/lto/lto.c:2053
0x621a81 lto_file_read
        ../../gcc/lto/lto.c:2094
0x621a81 read_cgraph_and_symbols
        ../../gcc/lto/lto.c:2804
0x621a81 lto_main()
        ../../gcc/lto/lto.c:3304

Thanks,
Martin

Reply via email to