PR c++/79502 - lost nodiscard attribute
authorJakub Jelinek <jakub@redhat.com>
Thu, 16 Feb 2017 19:49:19 +0000 (20:49 +0100)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 16 Feb 2017 19:49:19 +0000 (14:49 -0500)
commit790ecf853295e25cdd3f92113bc9dca1cf143040
tree46815e5e2d7e39820e47d6fbf4a625d01bb9f081
parentdbd0ef6d89f370c51b29f22b8da07ad446192eee
PR c++/79502 - lost nodiscard attribute

* pt.c (apply_late_template_attributes): Do apply non-dependent
attributes to types.

Co-Authored-By: Jason Merrill <jason@redhat.com>
From-SVN: r245516
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/attrib54.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/attrib55.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1z/nodiscard4.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/attrib53.C [new file with mode: 0644]