[Bug c++/33255] New: A warning for "unused" typedefs?
pcarlini at suse dot de
gcc-bugzilla@gcc.gnu.org
Thu Aug 30 23:21:00 GMT 2007
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
More information about the Gcc-bugs
mailing list