This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/81097] UBSAN: false positive for not existing negation operator and a bogus message
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 20 Jun 2017 12:47:17 +0000
- Subject: [Bug sanitizer/81097] UBSAN: false positive for not existing negation operator and a bogus message
- Auto-submitted: auto-generated
- References: <bug-81097-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81097
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Tue Jun 20 12:46:46 2017
New Revision: 249407
URL: https://gcc.gnu.org/viewcvs?rev=249407&root=gcc&view=rev
Log:
2017-06-20 Richard Biener <rguenther@suse.de>
PR middle-end/81097
* fold-const.c (split_tree): Fold to type before negating.
* c-c++-common/ubsan/pr81097.c: New testcase.
Added:
trunk/gcc/testsuite/c-c++-common/ubsan/pr81097.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog