[Bug c++/54372] New: __attribute__((unused)) doesn't work with unused local typedef in template function.

flast at flast dot jp gcc-bugzilla@gcc.gnu.org
Sat Aug 25 07:16:00 GMT 2012


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.



More information about the Gcc-bugs mailing list