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.
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 -
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100313
Marek Polacek changed:
What|Removed |Added
Ever confirmed|0 |1
CC|