re PR c++/84707 (internal compiler error: Segmentation fault (tree_check()/duplicate_...
authorMarek Polacek <polacek@redhat.com>
Mon, 5 Mar 2018 16:15:35 +0000 (16:15 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 5 Mar 2018 16:15:35 +0000 (16:15 +0000)
commita2460abb82e2fd3c45edf5e9f4ff61151ef8d815
treecdb2c2979cad7cb62d24b4520044167567b93bb0
parenta5dccd4614b84381f6799ae0162cd0859de0fc86
re PR c++/84707 (internal compiler error: Segmentation fault (tree_check()/duplicate_decls()))

PR c++/84707
* decl.c (duplicate_decls): Check DECL_NAME before accessing
UDLIT_OPER_P.

* g++.dg/cpp0x/inline-ns10.C: New test.

From-SVN: r258255
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/inline-ns10.C [new file with mode: 0644]