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
/
dr1391-1.C
blob
0b99f5d4a91c9c4782a2fa7ace59caebcea6b898
1
// DR 1391
2
3
template<class T> struct A {
4
typename T::N n;
5
};
6
template<class T> struct B { };
7
8
template<class T, class T2>
9
void foo(const A<T>& r); // #1
10
template<class T>
11
void foo(const B<T>& r); // #2
12
13
void baz() {
14
B<char> b;
15
foo(b); // OK
16
foo<char>(b); // error
17
}