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++/84702] ICE with default tmpl arg of overload set
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
access3.C
blob
2b456b1901af37a79a43c36e2e3f37c1ce1df6d3
1
// { dg-do compile }
2
3
// PR c++/5387
4
// Enforcing access of typename type.
5
6
template <class T> struct A {
7
typename T::template X<int> x; // { dg-error "this context" }
8
};
9
10
class B {
11
template <class T> class X {}; // { dg-message "private" }
12
};
13
14
int main()
15
{
16
A<B> ab; // { dg-message "required" }
17
}