This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/65695] [4.9/5 Regression] NSDMI calling constexpr constructor with pointer-to-member is not a constant expression


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]