This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/79502] [c++1z] [[nodiscard]] attribute ignored for class template
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 16 Feb 2017 19:49:51 +0000
- Subject: [Bug c++/79502] [c++1z] [[nodiscard]] attribute ignored for class template
- Auto-submitted: auto-generated
- References: <bug-79502-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79502
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Feb 16 19:49:19 2017
New Revision: 245516
URL: https://gcc.gnu.org/viewcvs?rev=245516&root=gcc&view=rev
Log:
PR c++/79502 - lost nodiscard attribute
* pt.c (apply_late_template_attributes): Do apply non-dependent
attributes to types.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/attrib54.C
trunk/gcc/testsuite/g++.dg/cpp0x/attrib55.C
trunk/gcc/testsuite/g++.dg/cpp1z/nodiscard4.C
trunk/gcc/testsuite/g++.dg/ext/attrib53.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c