https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85140
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Jun 22 21:03:38 2018 New Revision: 261944 URL: https://gcc.gnu.org/viewcvs?rev=261944&root=gcc&view=rev Log: Backported from mainline 2018-04-03 Jakub Jelinek <ja...@redhat.com> PR c++/85140 * name-lookup.c (handle_namespace_attrs): Return early if attributes is error_mark_node. * g++.dg/cpp0x/gen-attrs-64.C: New test. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp0x/gen-attrs-64.C Modified: branches/gcc-7-branch/gcc/cp/ChangeLog branches/gcc-7-branch/gcc/cp/name-lookup.c branches/gcc-7-branch/gcc/testsuite/ChangeLog