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

            Bug ID: 67699
           Summary: Segfault compiling a constexpr array with
                    -fmerge-all-constants -flto
           Product: gcc
           Version: 5.2.1
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gcc at norgg dot org
  Target Milestone: ---

Created attachment 36380
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36380&action=edit
Minimal testcase

Minimal test case attached, run with: g++ -std=c++11 -fmerge-all-constants
-flto gcc_crash.cpp -o gcc_crash.o

We've found this is repeatable in:

g++ (Ubuntu 4.9.2-0ubuntu1~14.04) 4.9.2
g++ (Ubuntu 5.1.0-0ubuntu11~14.04.1) 5.1.0
g++ 5.2.1 20150825 (Ubuntu 5.2.1-15ubuntu5)
g++ (Debian 5.2.1-17) 5.2.1 20150911
g++.exe (i686-posix-dwarf-rev0, Built by MinGW-W64 project) 5.1.0

Reply via email to