Re: C++ PATCH for c++/84707, ICE with nested anonymous namespace

2018-03-05 Thread Nathan Sidwell
On 03/05/2018 09:47 AM, Marek Polacek wrote: Since Nathan's r253489 we seem to not use anon_identifier anymore; rather, the DECL_NAME is simply NULL. This crashed in duplicate_decls on this invalid code because UDLIT_OPER_P was blithely used on a possibly null tree. Other spots in this function

C++ PATCH for c++/84707, ICE with nested anonymous namespace

2018-03-05 Thread Marek Polacek
Since Nathan's r253489 we seem to not use anon_identifier anymore; rather, the DECL_NAME is simply NULL. This crashed in duplicate_decls on this invalid code because UDLIT_OPER_P was blithely used on a possibly null tree. Other spots in this function check this, too. Bootstrapped/regtested on x8