repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update concepts branch to revision 131834
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
init-list.C
blob
6a868b25ed5406c7a7aac6c8bef0d362e21043a6
1
// Contributed by Gabriel Dos Reis <gdr@codesourcery.com>
2
// { dg-do compile }
3
4
template<typename T>
5
struct Base {
6
Base(int) { }
7
};
8
9
template<typename T>
10
struct Derived : Base<T> {
11
Derived();
12
};
13
14
template<typename T>
15
Derived<T>::Derived() : Base(4) { } // { dg-error "have any field" "" }
16
17