Bug 104877 - missing standard gnu++20 in diagnostic
Summary: missing standard gnu++20 in diagnostic
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 12.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: diagnostic
Depends on:
Blocks:
 
Reported: 2022-03-11 01:07 UTC by Roland Illig
Modified: 2022-03-11 10:50 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2022-03-11 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roland Illig 2022-03-11 01:07:42 UTC
cp/parser.cc says:
> use of %<auto%> in parameter declaration only available with %<-std=c++20%> or %<-fconcepts%>

What about %<-std=gnu++20%>?
Comment 1 Jonathan Wakely 2022-03-11 10:50:20 UTC
Maybe we should avoid referring to specific -std options and just say "since C++20 or with -fconcepts" (see also PR 90183).