public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/115038] New: ICE in seh_cfa_offset since 14.1.0
@ 2024-05-10 15:44 reiter.christoph at gmail dot com
  2024-05-11 12:15 ` [Bug target/115038] " reiter.christoph at gmail dot com
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: reiter.christoph at gmail dot com @ 2024-05-10 15:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115038

            Bug ID: 115038
           Summary: ICE in seh_cfa_offset since 14.1.0
           Product: gcc
           Version: 14.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: reiter.christoph at gmail dot com
  Target Milestone: ---

Downstream issue: https://github.com/msys2/MINGW-packages/issues/20861

The following code using GCC 14.1.0 on Windows targeting x86_64-w64-mingw32:

```
// 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);
}
```

results in

```
repro.cpp: In function 'void e()':
repro.cpp:8:1: internal compiler error: in seh_cfa_offset, at
config/i386/winnt.cc:1137
    8 | }
      | ^
```

* Replacing "-O2" with "-O1" fixes the issue
* Removing "-fno-omit-frame-pointer" fixes the issue
* Downgrading to GCC 13.2.0 fixes the issue

If there is any other information I can provide, let me know.

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2024-05-22 18:55 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-10 15:44 [Bug c++/115038] New: ICE in seh_cfa_offset since 14.1.0 reiter.christoph at gmail dot com
2024-05-11 12:15 ` [Bug target/115038] " reiter.christoph at gmail dot com
2024-05-12 15:42 ` [Bug target/115038] [14/15 regression] internal error in seh_cfa_offset with -O2 -fno-omit-frame-pointer ebotcazou at gcc dot gnu.org
2024-05-12 16:00 ` ebotcazou at gcc dot gnu.org
2024-05-12 16:33 ` ebotcazou at gcc dot gnu.org
2024-05-12 18:15 ` reiter.christoph at gmail dot com
2024-05-13  5:45 ` reiter.christoph at gmail dot com
2024-05-13  9:35 ` rguenth at gcc dot gnu.org
2024-05-20  6:25 ` [Bug rtl-optimization/115038] " ebotcazou at gcc dot gnu.org
2024-05-20  7:12 ` ebotcazou at gcc dot gnu.org
2024-05-22 14:48 ` law at gcc dot gnu.org
2024-05-22 16:04 ` ebotcazou at gcc dot gnu.org
2024-05-22 16:14 ` cvs-commit at gcc dot gnu.org
2024-05-22 18:54 ` cvs-commit at gcc dot gnu.org
2024-05-22 18:55 ` ebotcazou at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).