Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: max at maxbruckner dot de
Target Milestone: ---
Created attachment 41944
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41944&action=edit
C++
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81749
--- Comment #1 from Max Bruckner ---
Created attachment 41945
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41945&action=edit
Makefile to reproduce the error
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81749
--- Comment #2 from Max Bruckner ---
This is on x86_64
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81749
--- Comment #3 from Max Bruckner ---
Created attachment 41946
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41946&action=edit
Suppression file as a workaround. Add to UBSAN_OPTIONS=supressions=...
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81749
--- Comment #6 from Max Bruckner ---
Oh, you're right, unsigned overflow is defined of course. I guess I should
report a bug with UBSan then to get a suppression included for libstdc++.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81749
--- Comment #8 from Max Bruckner ---
I understand how unsigned integers work and that they are defined by the
standard to have modular arithmetic. In this case I just didn't add 1 and 1
together I guess.
Nevertheless I disagree that there is no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81749
--- Comment #10 from Max Bruckner ---
(In reply to Jakub Jelinek from comment #9)
> (In reply to Max Bruckner from comment #8)
> > Nevertheless I disagree that there is no "overflow" or "underflow". It's a
> > question of how you define the two w
FIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: max at maxbruckner dot de
Target Milestone: ---
Created attachment 42087
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42087&action=edit
Code
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: max at maxbruckner dot de
Target Milestone: ---
The c++-compat warning should warn about uses of sizeof when used with
character literals, because in C++ sizeof(' ') is the same as s
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: max at maxbruckner dot de
Target Milestone: ---
Created attachment 40999
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40999&action=edit
C
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80097
--- Comment #1 from Max Bruckner ---
Created attachment 41000
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41000&action=edit
Makefile with the compiler options necessary to reproduce the bug
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80097
--- Comment #2 from Max Bruckner ---
I already created a bug report in the Archlinux bug tracker here:
https://bugs.archlinux.org/task/53368 but I could also reproduce the bug on
Ubuntu 16.04.2 with GCC 5.4.0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80097
Max Bruckner changed:
What|Removed |Added
CC||max at maxbruckner dot de
--- Comment #3
13 matches
Mail list logo