-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-fno-omit-frame-pointer with -O2 causes an ICE in gcc 14.1.0 #20861
Comments
Thanks, c-reduced to: // gcc -c -fno-omit-frame-pointer -O2 repro.cpp
template <typename a> void b(a, a);
template <typename a> void c(a, a, float);
float d;
void e() {
float f;
c(f, f, d);
b(0.0f, f);
} |
7 tasks
7 tasks
There is a temporary workaround now by passing |
This is fixed in upstream too now: https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=2f0e0862406a17bb8bf4ad948ae22916bae092a0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description / Steps to reproduce the issue
Repro is attached. Download and extract, then compile it as such from the mingw64 terminal:
gcc -std=c++23 -fext-numeric-literals -fno-omit-frame-pointer -O2 repro.cpp
This produces the following output
Compiling with -O1, or removing -fno-omit-frame-pointer fixes this crash. Unfortunately I was unable to get -freport-bug to work here!
repro.zip
Expected behavior
The compiler not ICEing
Actual behavior
The compiler ICEs when compiling most files
Verification
Windows Version
MINGW64_NT-10.0-19045
MINGW environments affected
Are you willing to submit a PR?
no idea where i'd even start
The text was updated successfully, but these errors were encountered: