This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81862] New: [C++11][constexpr] Constructor Parenthesized Initialization of Member Array Crash
- From: "dsanders11 at ucsbalum dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 16 Aug 2017 13:31:12 +0000
- Subject: [Bug c++/81862] New: [C++11][constexpr] Constructor Parenthesized Initialization of Member Array Crash
- Auto-submitted: auto-generated
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);