https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85140
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Mon Jun 25 17:42:12 2018 New Revision: 262089 URL: https://gcc.gnu.org/viewcvs?rev=262089&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-6-branch/gcc/testsuite/g++.dg/cpp0x/gen-attrs-64.C Modified: branches/gcc-6-branch/gcc/cp/ChangeLog branches/gcc-6-branch/gcc/cp/name-lookup.c branches/gcc-6-branch/gcc/testsuite/ChangeLog