parent
21c38ecb89
commit
4e982a225f
17
gcc/testsuite/g++.dg/template/init-list.C
Normal file
17
gcc/testsuite/g++.dg/template/init-list.C
Normal 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" "" }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user