Re: [C++ PATCH] c++/92450 - ICE with invalid nested name specifier.

2019-11-20 Thread Jason Merrill
On 11/20/19 8:49 PM, Marek Polacek wrote: On Tue, Nov 19, 2019 at 05:34:45PM -0500, Jason Merrill wrote: On 11/18/19 7:04 PM, Marek Polacek wrote: The newly added diagnostic causes an ICE because the new grokdeclarator call returned error_mark_node and DECL_SOURCE_LOCATION crashes on that. So

Re: [C++ PATCH] c++/92450 - ICE with invalid nested name specifier.

2019-11-20 Thread Marek Polacek
On Tue, Nov 19, 2019 at 05:34:45PM -0500, Jason Merrill wrote: > On 11/18/19 7:04 PM, Marek Polacek wrote: > > The newly added diagnostic causes an ICE because the new grokdeclarator call > > returned error_mark_node and DECL_SOURCE_LOCATION crashes on that. So don't > > attempt to print the new d

Re: [C++ PATCH] c++/92450 - ICE with invalid nested name specifier.

2019-11-19 Thread Jason Merrill
On 11/18/19 7:04 PM, Marek Polacek wrote: The newly added diagnostic causes an ICE because the new grokdeclarator call returned error_mark_node and DECL_SOURCE_LOCATION crashes on that. So don't attempt to print the new diagnostic if we've encountered something not resembling a bit-field. Boots

[C++ PATCH] c++/92450 - ICE with invalid nested name specifier.

2019-11-18 Thread Marek Polacek
The newly added diagnostic causes an ICE because the new grokdeclarator call returned error_mark_node and DECL_SOURCE_LOCATION crashes on that. So don't attempt to print the new diagnostic if we've encountered something not resembling a bit-field. Bootstrapped/regtested on x86_64-linux, ok for tr