Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
lambda-__func__.C
blob: d1b02ef02813536f25c4ab9a9b3c6782a8f46abb [
file
] [
log
] [
blame
]
// PR c++/84925
// { dg-do compile { target c++17 } }
template
<typename>
struct
A
{
static
const
int
value
=
0
;
static
auto
constexpr
fn
=
[]
{
return
__func__
;
};
};
template
<
typename
type
>
int
x
=
A
<type>
::
value
;
auto
s
=
x
<int>
;