public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/54372] New: __attribute__((unused)) doesn't work with unused local typedef in template function.
@ 2012-08-25  7:16 flast at flast dot jp
  2012-08-25  7:18 ` [Bug c++/54372] " flast at flast dot jp
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: flast at flast dot jp @ 2012-08-25  7:16 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-09-28 13:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-25  7:16 [Bug c++/54372] New: __attribute__((unused)) doesn't work with unused local typedef in template function flast at flast dot jp
2012-08-25  7:18 ` [Bug c++/54372] " flast at flast dot jp
2012-09-18 12:39 ` paolo.carlini at oracle dot com
2012-09-20 11:27 ` dodji at gcc dot gnu.org
2012-09-20 11:59 ` paolo.carlini at oracle dot com
2012-09-20 14:14 ` dodji at seketeli dot org
2012-09-22 13:07 ` flast at flast dot jp
2012-09-28 13:33 ` dodji at gcc dot gnu.org
2012-09-28 13:36 ` dodji at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).