re PR c++/84644 (internal compiler error: in warn_misplaced_attr_for_class_type,...
authorPaolo Carlini <paolo.carlini@oracle.com>
Sat, 15 Dec 2018 09:07:38 +0000 (09:07 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 15 Dec 2018 09:07:38 +0000 (09:07 +0000)
commit1039d00c597ece034f51a66d085fa80f1f11d9e2
treec6d0a9f9ff6ad1c4a868f8af6bfe1c20b3f41b96
parent590f447b7027c218a11df8434569135abf450747
re PR c++/84644 (internal compiler error: in warn_misplaced_attr_for_class_type, at cp/decl.c:4718)

/cp
2018-12-15  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84644
* decl.c (check_tag_decl): A decltype with no declarator
doesn't declare anything.

/testsuite
2018-12-15  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84644
* g++.dg/cpp0x/decltype68.C: New.
* g++.dg/cpp0x/decltype-33838.C: Adjust.
* g++.dg/template/spec32.C: Likewise.
* g++.dg/template/ttp22.C: Likewise.

From-SVN: r267165
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/decltype-33838.C
gcc/testsuite/g++.dg/cpp0x/decltype68.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/spec32.C
gcc/testsuite/g++.dg/template/ttp22.C