D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 2235 - false unreachable statement in constructor (-w only, D1 only)
Summary: false unreachable statement in constructor (-w only, D1 only)
Status: RESOLVED WONTFIX
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on: 2463
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-19 06:54 UTC by Koroskin Denis
Modified: 2015-07-08 01:38 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Koroskin Denis 2008-07-19 06:54:37 UTC
Testcase:
~~~~~~~~~
class Test
{
    this()
    {
        assert(false, "Not implemented");
    }
}

Output:
warning - Error: statement is not reachable
Comment 1 Don 2009-04-01 10:31:43 UTC
Only applies to DMD1. The missing line number bug is the same as 2463.
Comment 2 Don 2011-12-19 04:45:20 UTC
Bug 2643 has now been fixed, removed "no line numbers shown" from title.
Only applies to constructors (doesn't even happen with a destructor).
Comment 3 Kenji Hara 2015-07-08 01:38:37 UTC
D1 is retired.