public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/115239] New: ICE: internal compiler error: Segmentation fault
@ 2024-05-27  4:37 markus at oberhumer dot com
  2024-05-27  4:40 ` [Bug c++/115239] " pinskia at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: markus at oberhumer dot com @ 2024-05-27  4:37 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 115239
           Summary: ICE: internal compiler error: Segmentation fault
           Product: gcc
           Version: 14.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: markus at oberhumer dot com
  Target Milestone: ---

Link at Compiler Explorer:

  https://godbolt.org/z/b1oW566E5

I stumbled on this while compiling some invalid code during refactoring.

Test case has been reduced by cvise.

Discovered using gcc-14.1.1-4.fc40.x86_64. Might be a regression - gcc-13 does
not crash.

Acutal code: ```
constexpr bool foo(const char *, char *, long) { return true; }
constexpr bool foo(const char *, char *, unsigned) { return true; }
constexpr bool foo(char, char, long) { return true; }
constexpr bool foo(char, char, unsigned) { return true; }

static_assert(foo((char *)nullptr, nullptr, 0));
```

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

end of thread, other threads:[~2024-06-24 21:51 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-27  4:37 [Bug c++/115239] New: ICE: internal compiler error: Segmentation fault markus at oberhumer dot com
2024-05-27  4:40 ` [Bug c++/115239] " pinskia at gcc dot gnu.org
2024-05-27  4:42 ` [Bug c++/115239] [14/15 Regression] ICE: Segmentation fault with ambiguous function call from static_assert in some cases pinskia at gcc dot gnu.org
2024-05-27  4:43 ` pinskia at gcc dot gnu.org
2024-05-27  4:45 ` [Bug c++/115239] [14/15 Regression] ICE: Segmentation fault with ambiguous function call " pinskia at gcc dot gnu.org
2024-05-27  7:22 ` [Bug c++/115239] [14/15 Regression] ICE: Segmentation fault with ambiguous function call in some cases (`const char*` vs `char` with `long` vs `unsigned`) rguenth at gcc dot gnu.org
2024-05-27  8:52 ` [Bug c++/115239] [14/15 Regression] ICE: Segmentation fault with ambiguous function call in some cases (`const char*` vs `char` with `long` vs `unsigned`) since r14-6522 jakub at gcc dot gnu.org
2024-06-13 14:02 ` cvs-commit at gcc dot gnu.org
2024-06-14 14:50 ` [Bug c++/115239] [14 " ppalka at gcc dot gnu.org
2024-06-17 14:26 ` cvs-commit at gcc dot gnu.org
2024-06-17 14:27 ` ppalka at gcc dot gnu.org
2024-06-24 21:51 ` pinskia 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).