summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/init-list.C
blob: 6a868b25ed5406c7a7aac6c8bef0d362e21043a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 "have any field" "" }