repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-pmf2.C
blob
a76e712afe1ba5ac9d28d0bbe89eefa5c317604b
1
// PR c++/98551
2
// { dg-do compile { target c++11 } }
3
4
struct A {};
5
struct B { int t(); };
6
using pmf = decltype(&B::t);
7
constexpr pmf f() { return &B::t; }
8
constexpr A g(pmf) { return {}; };
9
constexpr A x = g(f());