[Issue 3960] Unused local variables not reported
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jun 11 08:43:27 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=3960
--- Comment #16 from yebblies <yebblies at gmail.com> 2011-06-11 08:38:50 PDT ---
(In reply to comment #15)
> (In reply to comment #14)
> > I'm still fairly sure I've seen Walter say no to this request somewhere. If I
> > can find it I'll change the report to spec/enhancement.
>
> This isn't an enhancement. That the compiler doesn't behave according to the
> spec is an outright bug.
>
> It might be a case of removing the statement from the spec. But
> - it won't stop people wanting the compiler to warn of an unused local
> variable, so this would remain valid albeit as an enhancement request
> - any clue of why Walter may have changed his mind about this?
All I can find is
http://www.digitalmars.com/d/archives/digitalmars/D/Unused_variables_better_as_error_or_warning_115751.html#N115794
and
http://www.digitalmars.com/d/archives/c++/command-line/282.html
(from 2003!)
If the spec is wrong, then this _is_ a valid enhancement _and_ a valid spec
bug.
--
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