[Bug c++/79502] [c++1z] [[nodiscard]] attribute ignored for class template
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 16 19:50:00 GMT 2017
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
More information about the Gcc-bugs
mailing list