The command 'apt-get upgrade' upgraded gcc-7 from 7.3.0-27ubuntu1~18.04 to 7.4.0-1ubuntu1~18.04. However, this bug still exists in gcc 7.4.0.
By the way, I found that a slightly simple code give rise to an internal compiler error as follows. $ cat << EOF > foo.c #include <setjmp.h> #include <stdio.h> jmp_buf a[10] ; jmp_buf * volatile sp = a ; int main() { setjmp(*sp++) ; printf("diff=%td\n", sp-a) ; } EOF $ gcc foo.c foo.c: In function 'main': foo.c:9:5: internal compiler error: Segmentation fault setjmp(*sp++) ; ^ Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1826820 Title: calling setjmp destruct a variable To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-7/+bug/1826820/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs