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

Reply via email to