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




------- Comment #1 from clugdbug yahoo.com.au  2009-04-01 10:31 -------
Only applies to DMD1. The missing line number bug is the same as 2463.


-- 
Apr 01 2009