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
/
pr70610-2.C
blob
3368a5e5d89259ca00c6c172e75f86f3de009c7f
1
// PR c++/70610
2
// { dg-do link }
3
4
struct A { };
5
6
void operator+ (const A &, A &);
7
void operator+ (A &, const A &);
8
void operator+ (const A &, const A &) { }
9
10
template <typename T>
11
void
12
foo ()
13
{
14
A () + A ();
15
}
16
17
int
18
main ()
19
{
20
foo<int> ();
21
}