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

            Bug ID: 81862
           Summary: [C++11][constexpr] Constructor Parenthesized
                    Initialization of Member Array Crash
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dsanders11 at ucsbalum dot com
  Target Milestone: ---

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

Crash when using a parenthesized initialization of a member array with a
constexpr constructor.

Whittled the reproduce case down as much as I could, all parts of the reproduce
case source seem relevant to causing the crash. Switching to the standard
initialization of the member array without parentheses fixes the crash.

Crash error:

main.cpp:46:46: internal compiler error: in verify_ctor_sanity, at
cp/constexpr.c:2635
     constexpr Foo<int, bool> foobar(32, false);

Reply via email to