re PR c++/12093 (inconstitent error with templates/non-templates)
authorMark Mitchell <mmitchel@gcc.gnu.org>
Sat, 30 Aug 2003 01:43:59 +0000 (01:43 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sat, 30 Aug 2003 01:43:59 +0000 (01:43 +0000)
PR c++/12093
* g++.dg/template/non-dependent4.C: New test.

From-SVN: r70943

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

diff --git a/gcc/testsuite/g++.dg/template/non-dependent4.C b/gcc/testsuite/g++.dg/template/non-dependent4.C
new file mode 100644 (file)
index 0000000..637aaba
--- /dev/null
@@ -0,0 +1,4 @@
+int temp(char *temp);
+
+template <int> int g() { return temp("Hi"); }
+int g1() { return temp("Hi"); }