[Bug c++/80242] [C++17+] "Trailing return types" with "non-type template arguments" which could be "constant expressions" produce a parsing error
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Aug 12 01:31:14 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80242
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-08-12
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Keywords| |rejects-valid
Summary|"Trailing return types" |[C++17+] "Trailing return
|with "non-type template |types" with "non-type
|arguments" which could be |template arguments" which
|"constant expressions" |could be "constant
|produce a parsing error |expressions" produce a
| |parsing error
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed for C++17+. lambdas are only constexpr in C++17+.
More information about the Gcc-bugs
mailing list