[Issue 11066] New: Spurious warning when profiling codes using toLower()
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 18 20:19:37 PDT 2013
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: nobody at puremagic.com
ReportedBy: kekeniro2 at yahoo.co.jp
--- Comment #0 from kekeniro2 at yahoo.co.jp 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: -------
More information about the Digitalmars-d-bugs
mailing list