[Bug c/112870] New: incorrect jmp when using goto on a function, causing infinite loop

2023-12-05 Thread grantrwittmann at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112870 Bug ID: 112870 Summary: incorrect jmp when using goto on a function, causing infinite loop Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal

[Bug c/112870] incorrect jmp when using goto on a function, causing infinite loop

2023-12-05 Thread grantrwittmann at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112870 --- Comment #2 from Grant Wittman --- (In reply to Andrew Pinski from comment #1) > This is all undefined behavior. > > > Please read > https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gcc/Labels-as-Values.html . > > Specifically: > You may not use