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 check this, too.
Bootstrapped/regtested on x86_64-linux, ok for trunk?
OK.
2018-03-05 Marek Polacek <pola...@redhat.com>
PR c++/84707
* decl.c (duplicate_decls): Check DECL_NAME before accessing
UDLIT_OPER_P.
* g++.dg/cpp0x/inline-ns10.C: New test.
--
Nathan Sidwell