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
/
static33.C
blob
2d7b97da13851ab8bbcc47e75f6c8288f54db7a8
1
// PR c++/52688
2
// { dg-do link }
3
4
template<typename T>
5
T f()
6
{
7
static const double staticLocalVariable = 100.0;
8
struct local
9
{
10
static double f() { return staticLocalVariable; }
11
};
12
return T(local::f());
13
}
14
15
int main()
16
{
17
f<double>();
18
}