public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/110535] New: Internal error when performing a surrogate call with unsatisfied constraints
@ 2023-07-03 16:36 corentinjabot at gmail dot com
  2023-07-03 20:06 ` [Bug c++/110535] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: corentinjabot at gmail dot com @ 2023-07-03 16:36 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 110535
           Summary: Internal error when performing a surrogate call with
                    unsatisfied constraints
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: corentinjabot at gmail dot com
  Target Milestone: ---

Consider 

   int f1(int);

   template <auto N>
   struct A {
    using F = int(int);
    operator F*() requires N { return f1; }
   };

   int i = A<true>{}(0);  // Fine
   int j = A<false>{}(0); // Crash


This affects tip of trunk on CE https://godbolt.org/z/7vahavxv6

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

end of thread, other threads:[~2023-07-19 20:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-03 16:36 [Bug c++/110535] New: Internal error when performing a surrogate call with unsatisfied constraints corentinjabot at gmail dot com
2023-07-03 20:06 ` [Bug c++/110535] " pinskia at gcc dot gnu.org
2023-07-18 13:23 ` cvs-commit at gcc dot gnu.org
2023-07-18 13:26 ` ppalka at gcc dot gnu.org
2023-07-19 20:02 ` cvs-commit at gcc dot gnu.org
2023-07-19 20:03 ` ppalka 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).