[Bug sanitizer/61185] Wrong value in error message

2014-05-14 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61185 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug sanitizer/61185] Wrong value in error message

2014-05-14 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61185 --- Comment #3 from Jakub Jelinek --- But, if you want to use the source type before this conversion, make sure to also test stuff like: int main () { unsigned long long l = 0x0001ULL; volatile int u = 9; u <<= l; return 0; }

[Bug sanitizer/61185] Wrong value in error message

2014-05-14 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61185 --- Comment #2 from Jakub Jelinek --- IMHO not a bug. The compiler really uses (int) (i - j) as the shiftcount, and that is negative.

[Bug sanitizer/61185] Wrong value in error message

2014-05-14 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61185 Marek Polacek changed: What|Removed |Added Target Milestone|--- |4.10.0 --- Comment #1 from Marek Polacek