https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99521
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |error-recovery
Last reconfirmed| |2022-01-04
Ever confirmed|0 |1
Severity|normal |trivial
Resolution|DUPLICATE |---
Status|RESOLVED |NEW
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This one still ICEs but in a different location on the trunk:
<source>: In function 'int main()':
<source>:3:22: error: expected primary-expression before 'decltype'
3 | [](auto) requires (decltype;
| ^~~~~~~~
<source>:3:22: error: expected ')' before 'decltype'
3 | [](auto) requires (decltype;
| ~^~~~~~~~
| )
<source>:3:3: error: constraints on a non-templated function
3 | [](auto) requires (decltype;
| ^
<source>:3:22: internal compiler error: in dependent_type_p, at cp/pt.c:27143
3 | [](auto) requires (decltype;
| ^~~~~~~~
0x21349c9 internal_error(char const*, ...)
???:0
0x73802f fancy_abort(char const*, int, char const*)
???:0
0x990c38 dependent_type_p(tree_node*)
???:0
0x819798 start_preparsed_function(tree_node*, tree_node*, int)
???:0
0x895754 start_lambda_function(tree_node*, tree_node*)
???:0
0x9790cd c_parse_file()
???:0
0xb07012 c_common_parse_file()
???:0
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.