public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/109459] New: static_assert with operator""s causes internal compiler error
@ 2023-04-10  2:25 stevenxia990430 at gmail dot com
  2023-04-10  2:56 ` [Bug c++/109459] " de34 at live dot cn
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: stevenxia990430 at gmail dot com @ 2023-04-10  2:25 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109459
           Summary: static_assert with operator""s causes internal
                    compiler error
           Product: gcc
           Version: 12.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: stevenxia990430 at gmail dot com
  Target Milestone: ---

The following program reports an internal compiler error: Segmentation fault

To quickly reproduce: https://gcc.godbolt.org/z/T6E8Tb7ff
```
#include <string_view>
#include <iostream>
int main()
{
    using namespace std::literals;
    int x = 0;
    static_assert(std::is_void_v<std::decay_t<decltype(x)>>, "Cannot process
pair."s);

    return 0;
}
```

Removing the operator""s removes the internal compiler error.

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

end of thread, other threads:[~2023-04-10 17:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-10  2:25 [Bug c++/109459] New: static_assert with operator""s causes internal compiler error stevenxia990430 at gmail dot com
2023-04-10  2:56 ` [Bug c++/109459] " de34 at live dot cn
2023-04-10  7:24 ` jakub at gcc dot gnu.org
2023-04-10 17:32 ` stevenxia990430 at gmail dot com

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).