Re: [C++ Patch] Improve cp_parser_class_head error recovery

2019-10-21 Thread Jason Merrill
On 10/18/19 11:35 AM, Paolo Carlini wrote: Hi, a few days ago I noticed that for, say, g++.dg/parse/qualified2.C we were issuing two additional misleading errors after the first one, mentioning in particular a certain "unnamed class" (I'm reproducing only the error messages proper): namespa

[C++ Patch] Improve cp_parser_class_head error recovery

2019-10-18 Thread Paolo Carlini
Hi, a few days ago I noticed that for, say, g++.dg/parse/qualified2.C we were issuing two additional misleading errors after the first one, mentioning in particular a certain "unnamed class" (I'm reproducing only the error messages proper): namespace Glib {   template class Value {};   temp