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

            Bug ID: 67665
           Summary: ICE when passing two empty files directly to cc1 with
                    -g
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jgreenhalgh at gcc dot gnu.org
  Target Milestone: ---

I typoed inputs to a script, and ended up passing the same empty file twice to
cc1, that gave me an ICE with many recent versions of trunk (at least the last
month). There is no issue when doing the same through the driver, so this
really is a bit of an edge case...

To reproduce:

  touch foo.c
  .../build-gcc/gcc/cc1 foo.c foo.c -g

foo.c:1:0: internal compiler error: in
dwarf2out_register_main_translation_unit, at dwarf2out.c:22590
0x79a24e dwarf2out_register_main_translation_unit
        .../gcc-src/gcc/dwarf2out.c:22589
0x5ca751 pop_scope()
        .../gcc-src/gcc/c/c-decl.c:1193
0x5cad1f pop_file_scope()
        .../gcc-src/gcc/c/c-decl.c:1438
0x682ab7 c_common_parse_file()
        .../gcc-src/gcc/c-family/c-opts.c:1059
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.

Reply via email to