This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/79572] [6/7 Regression] reference binding to null pointer not reported with -fsanitize=undefined
- From: "trippels at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 17 Feb 2017 11:24:58 +0000
- Subject: [Bug sanitizer/79572] [6/7 Regression] reference binding to null pointer not reported with -fsanitize=undefined
- Auto-submitted: auto-generated
- References: <bug-79572-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79572
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |NEW
CC| |dodji at gcc dot gnu.org,
| |dvyukov at gcc dot gnu.org,
| |jakub at gcc dot gnu.org,
| |kcc at gcc dot gnu.org
Component|c++ |sanitizer
Resolution|INVALID |---
Summary|[6/7 Regression] Segfault |[6/7 Regression] reference
|with -O1 and higher on null |binding to null pointer not
|reference |reported with
| |-fsanitize=undefined
--- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
This is an -fsanitize=undefined regression.
5.4.1 gives:
runtime error: reference binding to null pointer of type 'const int
6 and trunk:
No runtime error is reported.