[Bug 1421963] [NEW] g++ internal compiler error

Pavel Kunyavskiy kunyavskiy at gmail.com
Sat Feb 14 15:16:32 UTC 2015


Public bug reported:

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(){
}

** Affects: gcc-4.9 (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "File, that gcc asked to attach"
   https://bugs.launchpad.net/bugs/1421963/+attachment/4319288/+files/ccSJ9Isz.out

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-4.9 in Ubuntu.
https://bugs.launchpad.net/bugs/1421963

Title:
  g++ internal compiler error

Status in gcc-4.9 package in Ubuntu:
  New

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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.9/+bug/1421963/+subscriptions



More information about the foundations-bugs mailing list