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

            Bug ID: 80572
           Summary: crash reporting warning from precompiled header
           Product: gcc
           Version: 6.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: th at zoon dot cc
  Target Milestone: ---

Created attachment 41286
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41286&action=edit
Test case

[build]
g++ -c -o pch.h.gch pch.h
g++ -c -o foo.o -include pch.h foo.cc

[pch.h]
#include <cstdlib>

[foo.cc]
bool minor();


When pch.h is #included directly, it stops crashing and prints a warning about
minor being #defined somewhere. So I'm guessing it crashes when it tries to
emit the same warning from the pch.

Version:
Current Arch: g++ (GCC) 6.3.1 20170306

Error message: 
foo.cc:2:1: internal compiler error: Segmentation fault
 bool minor();
 ^~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.

Reply via email to