Commit c58e6cc3 by Paolo Carlini

Add testcase of PR c++/89404, already fixed in trunk.

	PR c++/89404
	* g++.dg/ext/vla21.C: New.
parent 811a475e
2020-02-07 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/89404
* g++.dg/ext/vla21.C: New.
2020-02-07 Jakub Jelinek <jakub@redhat.com>
PR target/93615
......
// PR c++/89404
// { dg-additional-options "-Wno-vla" }
void
foo (int n)
{
struct {} a[1][n] (+a[0]); // { dg-error "initialized" }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment