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++/54372] New: __attribute__((unused)) doesn't work with unused local typedef in template function.


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54372

             Bug #: 54372
           Summary: __attribute__((unused)) doesn't work with unused local
                    typedef in template function.
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: flast@flast.jp


GCC 4.8 warns unused local typedefs and can suppres it with
__attribute__((unused)).
However, in member or non-member template function, it doesn't work with
dependent type.

I tested attached code.


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