https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79967
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Fri Mar 10 15:36:00 2017 New Revision: 246039 URL: https://gcc.gnu.org/viewcvs?rev=246039&root=gcc&view=rev Log: PR c++/79967 * decl.c (grokdeclarator): Check ATTRLIST before dereferencing it. * g++.dg/cpp0x/gen-attrs-63.C: New test. Added: trunk/gcc/testsuite/g++.dg/cpp0x/gen-attrs-63.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl.c trunk/gcc/testsuite/ChangeLog