Re: [C++ Patches] PR c++/66781 and c++/67847

2015-10-21 Thread Jason Merrill
OK. Jason

Re: [C++ Patches] PR c++/66781 and c++/67847

2015-10-21 Thread Paolo Carlini
Hi, and thanks a lot for your quick and helpful reply. On 10/21/2015 09:19 PM, Jason Merrill wrote: On 10/21/2015 04:37 AM, Paolo Carlini wrote: +"%qD is not an enumerator-name", identifier); This should be enum-name or "does not name an enumeration". We should also print the n

Re: [C++ Patches] PR c++/66781 and c++/67847

2015-10-21 Thread Jason Merrill
On 10/21/2015 04:37 AM, Paolo Carlini wrote: + "%qD is not an enumerator-name", identifier); This should be enum-name or "does not name an enumeration". We should also print the nested-name-specifier. + error_at (type_start_token->location, "nested name specif

[C++ Patches] PR c++/66781 and c++/67847

2015-10-21 Thread Paolo Carlini
Hi, I have two fixes for ICEs on invalid code. I'm not completely sure about the wording of the error message for c++/67847, fwiw, clang issues something rather similar. The other one should be more straightforward. Tested x86_64-linux. Thanks, Paolo. / /cp 2015-10-21 P