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
/
template-id-3.C
blob
e0753abd9e8efff8813e92f77b5b3d198bcc40e7
1
// PR c++/48261
2
3
typedef double (*gaddType)(double,double);
4
struct Foo2
5
{
6
static gaddType add;
7
};
8
9
template<typename T>
10
struct Something
11
{
12
void work()
13
{
14
double x=T::template add<double>(5.0,6.0); // { dg-error "add" }
15
}
16
};
17
18
int main()
19
{
20
Something<Foo2> s2;
21
s2.work();
22
}