http://d.puremagic.com/issues/show_bug.cgi?id=11066
Summary: Spurious warning when profiling codes using toLower()
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: diagnostic
Severity: minor
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 2013-09-18 20:19:31 PDT ---
The code below gives an wrong warning.
This is a regression introduced in 2.063.
However, without -w option it works, so this may be a minor issue.
COMMAND:
dmd -profile -w
CODE:
import std.string;
void main() {
auto s = toLower("");
}
OUTPUT:
Warning: statement is not reachable
// Note: It doesn't show its location.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------