2015-08-12 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/52742
* g++.dg/cpp0x/pr52742.C: New.
From-SVN: r226824
+2015-08-12 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/52742
+ * g++.dg/cpp0x/pr52742.C: New.
+
2015-08-12 H.J. Lu <hongjiu.lu@intel.com>
* gcc.target/i386/builtin_target.c (check_intel_cpu_model):
--- /dev/null
+// PR c++/52742
+// { dg-do compile { target c++11 } }
+
+void foo() {
+ new int[1] {1};
+}
+
+template<int A>
+void goo() {
+ new int[1] {1};
+}
+
+int main() {
+ foo();
+ goo<1>();
+}