D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1413 - not every body is guarded by if statement in DMDFE
Summary: not every body is guarded by if statement in DMDFE
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2007-08-11 18:33 UTC by david
Modified: 2014-02-16 15:25 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description david 2007-08-11 18:33:16 UTC
statement.c:2935
	    body = body->semantic(sc);
should be
      if(body)
	    body = body->semantic(sc);
Comment 1 Don 2010-05-26 13:21:06 UTC
The code is in WithStatement::semantic().

Bug 4238 deals with the same piece of code; I've included this in the patch for it.
Comment 2 Don 2010-08-13 22:45:06 UTC
There's no actual bug in this report.