[Bug c++/65695] [4.9/5 Regression] NSDMI calling constexpr constructor with pointer-to-member is not a constant expression
daniel.kruegler at googlemail dot com
Fri Apr 10 11:34:00 GMT 2015
--- Comment #9 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
(In reply to Sebastian Jähne from comment #8)
> [..] However, please remember that you are using a
> constexpr static member to store this address. Constexpr are evaluated at
> compile time.
> Correct me if I'm wrong, but as far as I know, you can only
> take the address of a member function at runtime.
That is a wrong assumption. It is a valid constant expression to retrieve a
More information about the Gcc-bugs