[C++,testcase] PR 55497

Submitted by Paolo Carlini on Nov. 28, 2012, 10:52 a.m.

Details

Message ID 50B5ECE1.1040206@oracle.com
State New
Headers show

Commit Message

Paolo Carlini Nov. 28, 2012, 10:52 a.m.
Hi,

committed to mainline.

Thanks,
Paolo.

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

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

Patch hide | download patch | download mbox

Index: g++.dg/init/pr55497.C
===================================================================
--- g++.dg/init/pr55497.C	(revision 0)
+++ g++.dg/init/pr55497.C	(working copy)
@@ -0,0 +1,15 @@ 
+// PR c++/55497
+// { dg-options "-g" }
+
+int get();
+
+struct B
+{
+  B()
+  {
+    static const int v = get(); 
+    char BUFFER[v];
+  }
+};
+
+B b;