]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Sat, 12 Feb 2005 16:29:20 +0000 (16:29 +0000)
committerNo Author <no-author@gcc.gnu.org>
Sat, 12 Feb 2005 16:29:20 +0000 (16:29 +0000)
'gcc-3_4-branch'.

From-SVN: r94943

gcc/testsuite/g++.dg/template/enum5.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/template/enum5.C b/gcc/testsuite/g++.dg/template/enum5.C
new file mode 100644 (file)
index 0000000..b7a49f4
--- /dev/null
@@ -0,0 +1,16 @@
+// { dg-do compile }
+
+// Origin: robertk@mathematik.uni-freiburg.de
+//        Wolfgang Bangerth <bangerth@ticam.utexas.edu>
+
+// PR c++/14479: Template header check for enum
+
+template <int dim>
+struct X {
+  enum { dimension = dim };
+  template<int d> void bar ();
+};
+
+template <>
+template <>
+void X<0>::bar<0> () {}