Re: [PATCH] fix constrained auto parsing issue

2019-10-21 Thread Jason Merrill
On 10/21/19 4:40 PM, Andrew Sutton wrote: In cp_parser_simple_type_specifier: if (!type && flag_concepts && decl_specs) { /* Try for a type-constraint with template arguments. We check decl_specs here to avoid trying this for a functional cast. */ ... It's subtle. Aha.

Re: [PATCH] fix constrained auto parsing issue

2019-10-21 Thread Andrew Sutton
In cp_parser_simple_type_specifier: if (!type && flag_concepts && decl_specs) { /* Try for a type-constraint with template arguments. We check decl_specs here to avoid trying this for a functional cast. */ ... It's subtle. Andrew Sutton On Mon, Oct 21, 2019 at 2:22 PM Jason

Re: [PATCH] fix constrained auto parsing issue

2019-10-21 Thread Jason Merrill
On 10/17/19 10:36 AM, Andrew Sutton wrote: This fixes a parsing bug with constrained placeholders uses as the first parameter of a constructor. +Parse with an empty set of declaration specifiers since we're +trying to match a type-specifier of the first parameter. */

[PATCH] fix constrained auto parsing issue

2019-10-17 Thread Andrew Sutton
This fixes a parsing bug with constrained placeholders uses as the first parameter of a constructor. Andrew Sutton 0001-Fix-a-bug-with-type-constraints-in-constructors.patch Description: Binary data