Testcase from PR #3625

From-SVN: r44825
This commit is contained in:
Gabriel Dos Reis 2001-08-12 13:04:39 +00:00
parent 21c38ecb89
commit 4e982a225f

View File

@ -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" "" }