[Issue 7232] New: Warning: statement is not reachable has no line number

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 5 07:52:35 PST 2012


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

           Summary: Warning: statement is not reachable has no line number
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: robert at octarineparrot.com


--- Comment #0 from Robert Clipsham <robert at octarineparrot.com> 2012-01-05 15:52:33 GMT ---
When the following is compiled with -w or -wi, it will give a warning without a
line number
----
bool addArticle()
{
    scope(failure) return false;
    return true;
}
----
Tested on dmd 2.057 on OS X 64 and Ubuntu 32.

$ dmd -w test.d
Warning: statement is not reachable

-- 
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