public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/95386] New: internal compiler error: in satisfaction_value,  while compiling function with a requires clause
@ 2020-05-28 14:22 jpalecek at web dot de
  2020-05-28 14:57 ` [Bug c++/95386] " marxin at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: jpalecek at web dot de @ 2020-05-28 14:22 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95386
           Summary: internal compiler error: in satisfaction_value, while
                    compiling function with a requires clause
           Product: gcc
           Version: 10.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jpalecek at web dot de
  Target Milestone: ---

Created attachment 48627
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48627&action=edit
C-reduced code reproducing the problem

Hello,

while trying to call a function with this signature

template <class T>
void g(T&& a) requires !std::is_lvalue_reference<T>()

I get an internal compiler error:


rref-test.cpp:48:6: internal compiler error: in satisfaction_value, at
cp/constraint.cc:2503
   48 |   g(a);

This doesn't happen if I don't use the implicit conversion to bool in the
requires clause:

template <class T>
void g(T&& a) requires !std::is_lvalue_reference<T>::value

is OK.

The minimized (C-reduced) reproducing code is in the attachment. It is a bit
funny as it is not syntactically a complete program, but does reproduce the
problem anyway.

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

end of thread, other threads:[~2020-05-30  4:23 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-28 14:22 [Bug c++/95386] New: internal compiler error: in satisfaction_value, while compiling function with a requires clause jpalecek at web dot de
2020-05-28 14:57 ` [Bug c++/95386] " marxin at gcc dot gnu.org
2020-05-28 15:16 ` jpalecek at web dot de
2020-05-28 15:17 ` jpalecek at web dot de
2020-05-28 15:59 ` [Bug c++/95386] [10/11 Regression] ICE: in satisfaction_value, while compiling function with a requires clause since r10-3735-gcb57504a55015891 marxin at gcc dot gnu.org
2020-05-29  6:25 ` rguenth at gcc dot gnu.org
2020-05-29  7:10 ` marxin at gcc dot gnu.org
2020-05-29 15:07 ` ppalka at gcc dot gnu.org
2020-05-30  1:16 ` cvs-commit at gcc dot gnu.org
2020-05-30  4:21 ` cvs-commit at gcc dot gnu.org
2020-05-30  4:23 ` 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).