Hi,
I'm committing the testcase and closing the PR as fixed in mainline.
Thanks,
Paolo.
///////////////////////////
2012-10-11 Paolo Carlini <[email protected]>
PR c++/43765
* g++.dg/parse/pr43765.C: New.
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" }