[Bug libstdc++/81749] New: std::align: runtime error: negation of 8 cannot be represented in type 'size_t'

2017-08-07 Thread max at maxbruckner dot de
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++

[Bug libstdc++/81749] std::align: runtime error: negation of 8 cannot be represented in type 'size_t'

2017-08-07 Thread max at maxbruckner dot de
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

[Bug libstdc++/81749] std::align: runtime error: negation of 8 cannot be represented in type 'size_t'

2017-08-07 Thread max at maxbruckner dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81749 --- Comment #2 from Max Bruckner --- This is on x86_64

[Bug libstdc++/81749] std::align: runtime error: negation of 8 cannot be represented in type 'size_t'

2017-08-07 Thread max at maxbruckner dot de
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=...

[Bug libstdc++/81749] std::align: runtime error: negation of 8 cannot be represented in type 'size_t'

2017-08-07 Thread max at maxbruckner dot de
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++.

[Bug libstdc++/81749] std::align: runtime error: negation of 8 cannot be represented in type 'size_t'

2017-08-07 Thread max at maxbruckner dot de
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

[Bug libstdc++/81749] std::align: runtime error: negation of 8 cannot be represented in type 'size_t'

2017-08-07 Thread max at maxbruckner dot de
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

[Bug libstdc++/82039] New: -Wzero-as-null-pointer-constant triggers when calling std::allocate<...>::allocate

2017-08-30 Thread max at maxbruckner dot de
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

[Bug c/79881] New: -Wc++-compat should warn about sizeof character literals

2017-03-05 Thread max at maxbruckner dot de
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

[Bug c/80097] New: internal compiler error in c_fully_fold_internal with std=c89 and -fsanitize=float-divide-by-zero

2017-03-19 Thread max at maxbruckner dot de
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

[Bug c/80097] internal compiler error in c_fully_fold_internal with std=c89 and -fsanitize=float-divide-by-zero

2017-03-19 Thread max at maxbruckner dot de
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

[Bug c/80097] internal compiler error in c_fully_fold_internal with std=c89 and -fsanitize=float-divide-by-zero

2017-03-19 Thread max at maxbruckner dot de
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

[Bug c/80097] internal compiler error in c_fully_fold_internal with std=c89 and -fsanitize=float-divide-by-zero

2017-03-19 Thread max at maxbruckner dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80097 Max Bruckner changed: What|Removed |Added CC||max at maxbruckner dot de --- Comment #3