g++ internal compiler error

Bug #1421963 reported by Pavel Kunyavskiy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-4.9 (Ubuntu)
New
Undecided
Unassigned

Bug Description

While compiling this code with gcc-4.9 compiler internal error happens. To reproduce you need to enable -O2 optimization level.

#include <setjmp.h>

int foo() {
  jmp_buf jmp;
  if (!setjmp(jmp)) goto label;
  return 1;
  setjmp(jmp);
  if (0) {
    setjmp(jmp);
  }
  label:;
  longjmp(jmp, 1);
}

int main(){
}

Revision history for this message
Pavel Kunyavskiy (kunyavskiy) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.