[MinGW-Notify] [mingw] #41753: -O2 Bug Infinite Loop

Back to archive index
MinGW Notification List mingw****@lists*****
Sat Mar 13 04:07:18 JST 2021


#41753: -O2 Bug Infinite Loop

  Open Date: 2021-03-13 04:07
Last Update: 2021-03-13 04:07

URL for this Ticket:
    https://osdn.net//projects/mingw/ticket/41753
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=41753

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2021-03-13 04:07 Updated by: first_last
 * New Ticket "-O2 Bug Infinite Loop" created


---------------------------------------------------------------------
Ticket Status:

      Reporter: first_last
         Owner: (None)
          Type: Issues
        Status: Open
      Priority: 9 - Highest
     MileStone: Create a 64bit build environment for the MinGW.org project.
     Component: GCC
      Severity: 9 - Highest
    Resolution: None
---------------------------------------------------------------------

Ticket details:

This Piece of Code is getting Stuck In Infinite Loop when Using -O2 Flag  
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;

ll f() {

  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 2; j++) {
     cout << i << " " << j << endl;
    }
  }
}

int main() {
  f();

  return 0;
}


-- 
Ticket information of MinGW - Minimalist GNU for Windows project
MinGW - Minimalist GNU for Windows Project is hosted on OSDN

Project URL: https://osdn.net/projects/mingw/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/mingw/ticket/41753
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=41753



More information about the MinGW-Notify mailing list
Back to archive index