This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/49779] Wrong code generated for while loop with guard containing continue


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49779

--- Comment #2 from bagnara at cs dot unipr.it 2011-07-18 17:42:39 UTC ---
An extension that is still supported by GCC, right?

Here is another testcase showing the same phenomenon with `break':

int main() {
  do {
    while (({ break; 1; })) {
      ;
    }
    return 0;
  } while (0);
  return 1;
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]