diff mbox

[C++,testcase] PR 43765

Message ID 50769C94.4060305@oracle.com
State New
Headers show

Commit Message

Paolo Carlini Oct. 11, 2012, 10:16 a.m. UTC
Hi,

I'm committing the testcase and closing the PR as fixed in mainline.

Thanks,
Paolo.

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

	PR c++/43765
	* g++.dg/parse/pr43765.C: New.
diff mbox

Patch

Index: g++.dg/parse/pr43765.C
===================================================================
--- g++.dg/parse/pr43765.C	(revision 0)
+++ g++.dg/parse/pr43765.C	(working copy)
@@ -0,0 +1,14 @@ 
+// PR c++/43765
+// { dg-options "" }
+
+struct SomeType
+{
+    const char *values[];
+};
+const char *temp[] = {"607", "612", 0};
+
+SomeType vals[] =
+    {
+        { values : temp, },
+        0
+    };          // { dg-error "invalid" }