]> gcc.gnu.org Git - gcc.git/commitdiff
Testcase from PR #3625
authorGabriel Dos Reis <gdr@gcc.gnu.org>
Sun, 12 Aug 2001 13:04:39 +0000 (13:04 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Sun, 12 Aug 2001 13:04:39 +0000 (13:04 +0000)
From-SVN: r44825

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

diff --git a/gcc/testsuite/g++.dg/template/init-list.C b/gcc/testsuite/g++.dg/template/init-list.C
new file mode 100644 (file)
index 0000000..6933ef8
--- /dev/null
@@ -0,0 +1,17 @@
+// Contributed by Gabriel Dos Reis <gdr@codesourcery.com>
+// { dg-do compile }
+
+template<typename T>
+struct Base {
+  Base(int) { }
+};
+
+template<typename T>
+struct Derived : Base<T> {
+  Derived();
+};
+
+template<typename T>
+Derived<T>::Derived() : Base(4) { } // { dg-error "field" "" }
+
+
This page took 0.071017 seconds and 5 git commands to generate.