This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/79502] [c++1z] [[nodiscard]] attribute ignored for class template


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]