GCC Bugzilla – Attachment 32546 Details for
Bug 60766
[4.7 Regression] Wrong optimization with -O2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Compile with -O2 and input 9
a.cpp (text/plain), 337 bytes, created by
MikeMirzayanov
on 2014-04-04 23:12:47 UTC
(
hide
)
Description:
Compile with -O2 and input 9
Filename:
MIME Type:
Creator:
MikeMirzayanov
Created:
2014-04-04 23:12:47 UTC
Size:
337 bytes
patch
obsolete
>#include <cstdlib> >#include <iostream> >#include <cstdio> > >using namespace std; > >int main() { > int n; > cin >> n; > > for (int x = 0; x <= n; x++) { > if (n == x + (x + 1) + (x + 2)) { > cout << x + 2 << " " << x + 1 << " " << x << endl; > exit(0); > } > } > cout << -1 << 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 60766
: 32546 |
32552
|
32556