Re: [PATCH] c++: Fix ICE with invalid using enum [PR96462]

2021-02-05 Thread Jason Merrill via Gcc-patches
On 2/4/21 6:10 PM, Marek Polacek wrote: Here we ICE in finish_nonmember_using_decl -> lookup_using_decl -> ... -> find_namespace_slot because "name" is not an IDENTIFIER_NODE. It is a BIT_NOT_EXPR because this broken test uses using E::~E; // SCOPE::NAME A using-decl can't refer to a destruc

[PATCH] c++: Fix ICE with invalid using enum [PR96462]

2021-02-04 Thread Marek Polacek via Gcc-patches
Here we ICE in finish_nonmember_using_decl -> lookup_using_decl -> ... -> find_namespace_slot because "name" is not an IDENTIFIER_NODE. It is a BIT_NOT_EXPR because this broken test uses using E::~E; // SCOPE::NAME A using-decl can't refer to a destructor, and lookup_using_decl already checks t