OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* parser.c (cp_parser_class_specifier): Set class location to that
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
init-list.C
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