https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68972
Bug ID: 68972
Summary: g++.dg/cpp1y/vla-initlist1.C test case fails on power
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: seurer at linux dot vnet.ibm.com
Target Milestone: ---
PASS: g++.dg/cpp1y/vla-initlist1.C -std=gnu++11 (test for excess errors)
FAIL: g++.dg/cpp1y/vla-initlist1.C -std=gnu++11 execution test
PASS: g++.dg/cpp1y/vla-initlist1.C -std=gnu++14 (test for excess errors)
FAIL: g++.dg/cpp1y/vla-initlist1.C -std=gnu++14 execution test
This has been failing for quite some time, at least back to gcc 5. The problem
does not occur on x86.
__builtin_abort is called because the variable length array is not initialized
as expected.
{ int i[x] = { 42, 42, 42, 42 }; }
{
A a[x] = { argc };
if (a[1].i != 42)
__builtin_abort ();