[Issue 3960] Unused local variables not reported

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 21 04:39:35 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=3960



--- Comment #33 from bearophile_hugs at eml.cc 2012-10-21 04:39:22 PDT ---
A related warning is for "unused local alias".

A bug in GCC, libstdc++/33084, in <valarrray> 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));


There is a typo: _Rt  ->  _Tp

In GCC 4.7, the -Wunused-local-typedefs warning detects such sort of suspect
"unused" typedef.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list