[Bug c++/100313] pointer to member function is not const with sanitize=undefined

2021-04-28 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100313 --- Comment #3 from Marek Polacek --- In fact, this is about -fno-delete-null-pointer-checks.

[Bug c++/100313] pointer to member function is not const with sanitize=undefined

2021-04-28 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100313 --- Comment #2 from Marek Polacek --- Cleaned up: template struct Prop { void notify() { if constexpr (A != nullptr) { } } }; struct S { inline void fn() { } }; int main() { Prop<&S::fn> prop; prop.notify(); } Requires only -

[Bug c++/100313] pointer to member function is not const with sanitize=undefined

2021-04-28 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100313 Marek Polacek changed: What|Removed |Added Ever confirmed|0 |1 CC|