g++ internal compiler error
Bug #1421963 reported by
Pavel Kunyavskiy
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(){
}
To post a comment you must log in.