public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99923] New: Rejects valid if statement with default argument concept
@ 2021-04-06 2:36 hewillk at gmail dot com
2022-02-02 2:08 ` [Bug c++/99923] " ppalka at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: hewillk at gmail dot com @ 2021-04-06 2:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99923
Bug ID: 99923
Summary: Rejects valid if statement with default argument
concept
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: hewillk at gmail dot com
Target Milestone: ---
https://godbolt.org/z/zPPMEaa33
template <class = void> concept C = true;
void foo() { if (C<>) return; }
gcc rejects this valid grammar with:
<source>: In function 'void foo()':
<source>:2:18: error: expected 'auto' or 'decltype(auto)' after 'C<>'
2 | void foo() { if (C<>) return; }
| ^~~
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/99923] Rejects valid if statement with default argument concept
2021-04-06 2:36 [Bug c++/99923] New: Rejects valid if statement with default argument concept hewillk at gmail dot com
@ 2022-02-02 2:08 ` ppalka at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: ppalka at gcc dot gnu.org @ 2022-02-02 2:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99923
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
CC| |ppalka at gcc dot gnu.org
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Fixed on 11.3/12 by r11-9388/r12-5053, so let's call this a dup of PR85846
*** This bug has been marked as a duplicate of bug 85846 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-02 2:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-06 2:36 [Bug c++/99923] New: Rejects valid if statement with default argument concept hewillk at gmail dot com
2022-02-02 2:08 ` [Bug c++/99923] " 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).