[Bug sanitizer/108014] Incorrect line number in UBSAN's report

2022-12-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108014 --- Comment #2 from Andrew Pinski --- I don't know if this is a bug really. The statement on line 9 (`e = b + 1;`) gets removed and therefor there was no undefined behavior that happens at all. Either DSE or CDDCE does the removal (depending o

[Bug sanitizer/108014] Incorrect line number in UBSAN's report

2022-12-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108014 --- Comment #1 from Andrew Pinski --- Created attachment 54040 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54040&action=edit testcase without line #