Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-ptrmem3.C

raw
1 // PR c++/62129
2 // { dg-do compile { target c++11 } }
3
4 class Evaluator
5 {
6 int MakeChangelist ();
7 typedef int (Evaluator::*fac_t)();
8 struct CreatorEntry
9 {
10 const char *type;
11 fac_t factory;
12 };
13 static constexpr CreatorEntry kCreators[] = { "", &Evaluator::MakeChangelist };
14 };
15
16 constexpr Evaluator::CreatorEntry Evaluator::kCreators[];