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

2017-08-08 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81749 Eric Botcazou changed: What|Removed |Added CC||ebotcazou at gcc dot gnu.org ---

[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

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

2017-08-07 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81749 --- Comment #9 from Jakub Jelinek --- (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 words, in a way, but being defined > doesn't make

[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 redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81749 --- Comment #7 from Jonathan Wakely --- Strictly speaking, unsigned overflow doesn't even exist. "Integer overflow" is only something that happens for signed integers. Operations on unsigned integers have defined behaviour, they can't

[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 jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81749 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

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

2017-08-07 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81749 Markus Trippelsdorf changed: What|Removed |Added CC||trippels at gcc dot gnu.org ---

[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=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 #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 #1 from Max Bruckner --- Created attachment 41945 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41945=edit Makefile to reproduce the error