Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
static33.C
blob: 2d7b97da13851ab8bbcc47e75f6c8288f54db7a8 [
file
] [
log
] [
blame
]
// PR c++/52688
// { dg-do link }
template
<
typename
T
>
T f
()
{
static
const
double
staticLocalVariable
=
100.0
;
struct
local
{
static
double
f
()
{
return
staticLocalVariable
;
}
};
return
T
(
local
::
f
());
}
int
main
()
{
f
<double>
();
}