public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jpalecek at web dot de" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95386] New: internal compiler error: in satisfaction_value, while compiling function with a requires clause Date: Thu, 28 May 2020 14:22:34 +0000 [thread overview] Message-ID: <bug-95386-4@http.gcc.gnu.org/bugzilla/> (raw) 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.
next reply other threads:[~2020-05-28 14:22 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-05-28 14:22 jpalecek at web dot de [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-95386-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).