GCC Bugzilla – Attachment 37954 Details for
Bug 70222
Test miscompiled with -O1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Reproducer.
repr.cpp (text/x-csrc), 270 bytes, created by
Vsevolod Livinskii
on 2016-03-14 09:16:03 UTC
(
hide
)
Description:
Reproducer.
Filename:
MIME Type:
Creator:
Vsevolod Livinskii
Created:
2016-03-14 09:16:03 UTC
Size:
270 bytes
patch
obsolete
>#include <iostream> > >int a = 1; >unsigned int b = 2; >int c = 0; >int d = 0; > >void foo () { > int e = ((-(c >= c)) < b) > ((int)(((unsigned long long int)(-1)) >> ((a / a) * 15))); > d = -e; >} > >int main () { > foo (); > std::cout << d << std::endl; > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 70222
: 37954 |
37956