blob: cb0d1bed0b122bee825399050c1ae04ba3e9bb10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// PR c++/102786
// { dg-do compile { target c++20 } }
struct S {
virtual constexpr int foo () const { return 42; }
};
constexpr S s;
constexpr auto a = &S::foo;
constexpr auto b = (s.*a) ();
constexpr auto c = (s.*&S::foo) ();
|