re PR c++/79967 (ICE on non-type template argument declared noreturn)
authorMarek Polacek <polacek@redhat.com>
Fri, 10 Mar 2017 15:36:00 +0000 (15:36 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 10 Mar 2017 15:36:00 +0000 (15:36 +0000)
commit455d833cd8ea14eec356e0f85a3a7e173592ece8
tree7034dca89e5d888387c22712ecbbb7b3e0cae76e
parente260b0a7dda804cd2bd0beee477d47ce9c01d4c0
re PR c++/79967 (ICE on non-type template argument declared noreturn)

PR c++/79967
* decl.c (grokdeclarator): Check ATTRLIST before dereferencing it.

* g++.dg/cpp0x/gen-attrs-63.C: New test.

From-SVN: r246039
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/gen-attrs-63.C [new file with mode: 0644]