PR c++/26572
* g++.dg/template/error51.C: New.
2013-05-24 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/25503
* g++.dg/template/bitfield2.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199288
138bc75d-0d04-0410-961f-
82ee72b054a4
+2013-05-24 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/26572
+ * g++.dg/template/error51.C: New.
+
+2013-05-24 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/25503
+ * g++.dg/template/bitfield2.C: New.
+
2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/specs/noinline1.ads: New test.
--- /dev/null
+// PR c++/25503
+
+template<int N>
+struct Test
+{
+ Test()
+ {
+ typedef struct StaticAssert {unsigned condition : (N); } XXX; // { dg-error "zero width" }
+ }
+};
+
+int
+main()
+{
+ Test<0> T;
+}
--- /dev/null
+// PR c++/26572
+
+template<int> void foo()
+{
+ struct A; // { dg-error "declaration" }
+ struct B : A {}; // { dg-error "invalid use of incomplete" }
+}
+
+template void foo<0>();