public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/112437] New: ICE with throw inside concept sometimes and -std=c++20
@ 2023-11-08  5:22 pinskia at gcc dot gnu.org
  2023-11-08  5:28 ` [Bug c++/112437] " pinskia at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-08  5:22 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112437
           Summary: ICE with throw inside concept sometimes and -std=c++20
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

Take:
```

struct moveonly {};
template<class T>
concept Throwable = requires(T x) { throw x; };

bool a = Throwable<moveonly>;
```

This ICEs with `-std=c++20` but does not with `-std=c++17 -fconcepts`

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

end of thread, other threads:[~2024-02-01 15:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-08  5:22 [Bug c++/112437] New: ICE with throw inside concept sometimes and -std=c++20 pinskia at gcc dot gnu.org
2023-11-08  5:28 ` [Bug c++/112437] " pinskia at gcc dot gnu.org
2023-11-08  5:29 ` pinskia at gcc dot gnu.org
2023-11-08 12:00 ` redi at gcc dot gnu.org
2024-01-24  3:08 ` mpolacek at gcc dot gnu.org
2024-02-01 14:00 ` cvs-commit at gcc dot gnu.org
2024-02-01 15:41 ` cvs-commit at gcc dot gnu.org
2024-02-01 15:50 ` cvs-commit at gcc dot gnu.org
2024-02-01 15:56 ` mpolacek 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).