This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/65695] [4.9/5 Regression] NSDMI calling constexpr constructor with pointer-to-member is not a constant expression
- From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 10 Apr 2015 11:10:58 +0000
- Subject: [Bug c++/65695] [4.9/5 Regression] NSDMI calling constexpr constructor with pointer-to-member is not a constant expression
- Auto-submitted: auto-generated
- References: <bug-65695-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65695
--- Comment #7 from Daniel KrÃgler <daniel.kruegler at googlemail dot com> ---
(In reply to Sebastian JÃhne from comment #6)
> It does.
No, it doesn't.
> Member functions need an object in order to operate.
It only needs an object, if the function is going to invoked, but this is not
happening here.
> Only static
> member functions don't need an object (which is why you can invoke them like
> Class::StaticMemberFunc()).
The object is not of relevance for the described example.