Patchwork [C++,testcase] PR 55497

login
register
mail settings
Submitter Paolo Carlini
Date Nov. 28, 2012, 10:52 a.m.
Message ID <50B5ECE1.1040206@oracle.com>
Download mbox | patch
Permalink /patch/202430/
State New
Headers show

Comments

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

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;