This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33255] New: A warning for "unused" typedefs?
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Aug 2007 23:21:25 -0000
- Subject: [Bug c++/33255] New: A warning for "unused" typedefs?
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Just a wild idea, motivated by libstdc++/33084: in that case we had a function
with this body:
typedef _BinClos<_Name, _Constant, _ValArray, _Tp, _Tp> _Closure;
typedef typename __fun<_Name, _Tp>::result_type _Rt;
return _Expr<_Closure, _Tp>(_Closure(__t, __v));
where the fact that _Rt was completely pointless clearly hinted to a bug, a
typo _Tp -> _Rt in the last line. Would it make sense to add an option to the
front-end to warn in such cases?
--
Summary: A warning for "unused" typedefs?
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pcarlini at suse dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33255