Re: [PATCH] c++: add "'requires' only available with ..." note

2020-04-24 Thread Jason Merrill via Gcc-patches
On 4/24/20 3:52 PM, Patrick Palka wrote: This adds a note suggesting to enable concepts whenever 'requires' is parsed as an invalid type name with concepts disabled. Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK to commit? OK. gcc/cp/ChangeLog: * parser.c (cp_

[PATCH] c++: add "'requires' only available with ..." note

2020-04-24 Thread Patrick Palka via Gcc-patches
This adds a note suggesting to enable concepts whenever 'requires' is parsed as an invalid type name with concepts disabled. Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK to commit? gcc/cp/ChangeLog: * parser.c (cp_parser_diagnose_invalid_type_name): Suggest to ena