public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/100589] New: function with trailing return type must specify return type 'auto' instead of 'concept auto'
@ 2021-05-13 15:09 stanislaw.w.morawski at gmail dot com
2021-05-14 9:26 ` [Bug c++/100589] " redi at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: stanislaw.w.morawski at gmail dot com @ 2021-05-13 15:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100589
Bug ID: 100589
Summary: function with trailing return type must specify return
type 'auto' instead of 'concept auto'
Product: gcc
Version: 11.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: stanislaw.w.morawski at gmail dot com
Target Milestone: ---
https://godbolt.org/z/jnahsxrnq
Behaviour:
Concept is being ignored when used with auto keyword preceding function with
trailing return type.
Expected Behaviour:
Syntax error: improper use of concept.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/100589] function with trailing return type must specify return type 'auto' instead of 'concept auto'
2021-05-13 15:09 [Bug c++/100589] New: function with trailing return type must specify return type 'auto' instead of 'concept auto' stanislaw.w.morawski at gmail dot com
@ 2021-05-14 9:26 ` redi at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: redi at gcc dot gnu.org @ 2021-05-14 9:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100589
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-05-14
Keywords| |accepts-invalid
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Please provide the testcase here, not just via a URL, as requested by
https://gcc.gnu.org/bugs/.
Here's the code, which is accepted with -std=c++20 but shouldn't be:
template<class T>
concept false_concept = false;
false_concept auto f() -> int;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-14 9:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-13 15:09 [Bug c++/100589] New: function with trailing return type must specify return type 'auto' instead of 'concept auto' stanislaw.w.morawski at gmail dot com
2021-05-14 9:26 ` [Bug c++/100589] " redi 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).