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
PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
error15.C
blob
ad18a1b3f9af7cbbbc2d2966b2bce2360595a569
1
// PR c++/16929
2
3
template <class T>
4
class A {
5
int x;
6
};
7
8
template <class T>
9
class B {
10
protected:
11
12
A<T> a; // { dg-message "" }
13
14
void f(const A<T> * a1 = &a); // { dg-error "non-static" }
15
16
void g(void);
17
};
18
19
template <class T>
20
void B<T>::g(void) {
21
f();
22
}
23
24
template class B<long>;