[PATCH] Don't ICE on invalid weak decl (PR middle-end/67330)

2015-08-25 Thread Marek Polacek
Here we are ICEing on an invalid code: symtab_node::get asserts that it's dealing with a function or a static or external variable, but an invalid decl is rejected too late. So don't try to mark_weak an invalid decl and also don't duplicate the declared weak after being used check -- that is

Re: [PATCH] Don't ICE on invalid weak decl (PR middle-end/67330)

2015-08-25 Thread Jeff Law
On 08/25/2015 09:44 AM, Marek Polacek wrote: Here we are ICEing on an invalid code: symtab_node::get asserts that it's dealing with a function or a static or external variable, but an invalid decl is rejected too late. So don't try to mark_weak an invalid decl and also don't duplicate the