Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
pr99790.C
blob: 99961f5a4ee408bd771820c524ac15449f64e75d [
file
] [
log
] [
blame
]
// PR c++/99790
// { dg-do compile { target c++17 } }
struct
A
;
struct
B
{
void
(*
fn
)
(
A
*);
};
template
<
typename
T
>
int
foo
(
const
T
&);
struct
A
{
int
a
;
static
constexpr
B b
{[]
(
A
*
n
)
{
n
->*&
A
::
a
=
2
;
}};
};
int
a
=
foo
(
A
::
b
);