Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-pmf2.C
blob: a76e712afe1ba5ac9d28d0bbe89eefa5c317604b [
file
] [
log
] [
blame
]
// PR c++/98551
// { dg-do compile { target c++11 } }
struct
A
{};
struct
B
{
int
t
();
};
using
pmf
=
decltype
(&
B
::
t
);
constexpr
pmf f
()
{
return
&
B
::
t
;
}
constexpr
A g
(
pmf
)
{
return
{};
};
constexpr
A x
=
g
(
f
());