This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/72818] No warning for dereferencing casted pointer
- From: "pmatos at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 05 Aug 2016 15:52:11 +0000
- Subject: [Bug middle-end/72818] No warning for dereferencing casted pointer
- Auto-submitted: auto-generated
- References: <bug-72818-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72818
--- Comment #1 from pmatos at gcc dot gnu.org ---
Please disregard the -fsanitize=undefined in my initial comment. I didn't
expect -fsanitize=undefined to caught it. That was an artefact from my original
example. I expected a warning from GCC at compile time similar to that of the
former example.