This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54372] New: __attribute__((unused)) doesn't work with unused local typedef in template function.
- From: "flast at flast dot jp" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 25 Aug 2012 07:16:35 +0000
- Subject: [Bug c++/54372] New: __attribute__((unused)) doesn't work with unused local typedef in template function.
- Auto-submitted: auto-generated
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.