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

            Bug ID: 89483
           Summary: internal compiler error: Segmentation fault signal
                    terminated program cc1plus with templates
           Product: gcc
           Version: 8.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: integrex at yandex dot ru
  Target Milestone: ---

Created attachment 45809
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45809&action=edit
segfault-program.cpp

Description:
Segmentation fault happens while compiling segfault-program.cpp (in
attachments) with options: "g++ -ftemplate-depth=1000000 segfault-program.cpp".
Also, there is no errors while compiling non-segfault-program.cpp (in
attachments) with the same compiler options, but it takes some time:

real    2m16,186s
user    2m14,934s
sys     0m0,231s

Additional info:
* Verbose output of compiling (with -v option) in attachments (verbose-output).
* g++ version: "g++ (GCC) 8.2.1 20180831".
* Arch Linux version: "Linux Billy 4.18.16-arch1-1-ARCH #1 SMP PREEMPT Sat Oct
20 22:06:45 UTC 2018 x86_64 GNU/Linux".
* Preprosessed segfault program in attachments (preprocessed-segfault-program).

Reply via email to