https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78555
Martin Liška changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78555
--- Comment #8 from Martin Liška ---
Author: marxin
Date: Fri Dec 2 08:36:01 2016
New Revision: 243163
URL: https://gcc.gnu.org/viewcvs?rev=243163=gcc=rev
Log:
Fix runtime error: left shift of negative value (PR
PR ipa/78555
*
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78555
--- Comment #7 from Markus Trippelsdorf ---
Another testcase for sreal.c
markus@x4 ~ % cat test.ii
struct A {
A();
A(const A &);
};
struct B {
B(int);
};
template struct C {
B super_t;
C(Predicate p1, int) : super_t(0),
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78555
--- Comment #6 from Markus Trippelsdorf ---
Author: trippels
Date: Wed Nov 30 12:22:55 2016
New Revision: 243012
URL: https://gcc.gnu.org/viewcvs?rev=243012=gcc=rev
Log:
Fix part of PR78555 - gcc/real.c:2890:25: runtime error: left shift of
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78555
--- Comment #5 from Markus Trippelsdorf ---
markus@x4 ~ % cat real.ii
class A {
int N;
static const int D = 1 << 31;
int _fn1() const;
};
int ::m_fn1() const { int a((double)N / D); }
markus@x4 ~ % UBSAN_OPTIONS=print_stacktrace=1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78555
--- Comment #4 from Markus Trippelsdorf ---
For example:
markus@x4 ~ % cat bench.ii
struct A {
enum { __value };
};
template _OI __copy_move_a2(_II, _OI);
template void copy(_II, _II, _OI p3) {
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78555
--- Comment #3 from Martin Liška ---
Do you have a test-case (not necessarily reduced) that I can use for testing?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78555
--- Comment #2 from Markus Trippelsdorf ---
I also hit:
gcc/real.c:2890:25: runtime error: left shift of negative value -125
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78555
Martin Liška changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|