www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2235] New: false unreachable statement detected, no linenumbers shown (-w only)

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2235

           Summary: false unreachable statement detected, no linenumbers
                    shown (-w only)
           Product: D
           Version: 1.033
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: 2korden gmail.com


Testcase:
~~~~~~~~~
class Test
{
    this()
    {
        assert(false, "Not implemented");
    }
}

Output:
warning - Error: statement is not reachable


-- 
Jul 19 2008
next sibling parent "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
<d-bugmail puremagic.com> wrote in message 
news:bug-2235-3 http.d.puremagic.com/issues/...
 http://d.puremagic.com/issues/show_bug.cgi?id=2235

           Summary: false unreachable statement detected, no linenumbers
                    shown (-w only)
           Product: D
           Version: 1.033
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: 2korden gmail.com


 Testcase:
 ~~~~~~~~~
 class Test
 {
    this()
    {
        assert(false, "Not implemented");
    }
 }

 Output:
 warning - Error: statement is not reachable


 -- 
Ha, I just ran into this today and was going to report it.
Jul 19 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2235


clugdbug yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |2463
           Keywords|                            |diagnostic





Only applies to DMD1. The missing line number bug is the same as 2463.


-- 
Apr 01 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2235


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|diagnostic                  |
                 CC|                            |clugdbug yahoo.com.au
            Summary|false unreachable statement |false unreachable statement
                   |detected, no linenumbers    |in constructor (-w only, D1
                   |shown (-w only, D1 only)    |only)



Bug 2643 has now been fixed, removed "no line numbers shown" from title.
Only applies to constructors (doesn't even happen with a destructor).

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