Commit fb1fbef2 by Paolo Carlini Committed by Paolo Carlini

re PR c++/55497 (Local array (char[]) initialized with a size taken from a…

re PR c++/55497 (Local array (char[]) initialized with a size taken from a static variable creates an ICE)

2012-11-28  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/55497
	* g++.dg/init/pr55497.C: New.

From-SVN: r193885
parent e9d6bd8c
2012-11-28 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/55497
* g++.dg/init/pr55497.C: New.
2012-11-28 Richard Biener <rguenther@suse.de> 2012-11-28 Richard Biener <rguenther@suse.de>
PR testsuite/55327 PR testsuite/55327
......
// PR c++/55497
// { dg-options "-g" }
int get();
struct B
{
B()
{
static const int v = get();
char BUFFER[v];
}
};
B b;
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