This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/66630] New: Missing ubsan/ftrapv error
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 22 Jun 2015 16:46:13 +0000
- Subject: [Bug middle-end/66630] New: Missing ubsan/ftrapv error
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66630
Bug ID: 66630
Summary: Missing ubsan/ftrapv error
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: mpolacek at gcc dot gnu.org
Target Milestone: ---
int
main (void)
{
int i = -__INT_MAX__ - 1;
int j = -i - 1;
return j;
}
$ xgcc -fsanitize=undefined a.c; ./a.out
says nothing :(. We should report the overflow when computing -i.