Patchwork [C++,testcase] PR 43765

login
register
mail settings
Submitter Paolo Carlini
Date Oct. 11, 2012, 10:16 a.m.
Message ID <50769C94.4060305@oracle.com>
Download mbox | patch
Permalink /patch/190860/
State New
Headers show

Comments

Paolo Carlini - Oct. 11, 2012, 10:16 a.m.
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.

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" }