Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
());