I don't understand how this is a bug. Calling a member function on
a null pointer is clearly UB.
There is already a flag to support non-standard programs like this
(-fno-delete-null-pointer-checks), but it's not enabled by default,
of course.
Control: tags -1 + moreinfo
please recheck with the gcc-12 and gcc-13 packages from unstable. Also please
try to check with a standalone test case.
Package: g++-12
Version: 12.2.0-14
Severity: normal
X-Debbugs-Cc: iv...@isle.spb.ru
Dear Maintainer,
When I compile c++ code which has an error (method invoked on
null class pointer) the following problem occurs: the actual
call does not crash, since 'this' pointer is not really used
in called me
3 matches
Mail list logo