Bug 1413 – not every body is guarded by if statement in DMDFE

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-08-11T18:33:00Z
Last change time
2014-02-16T15:25:32Z
Keywords
patch
Assigned to
nobody
Creator
davidl

Comments

Comment #0 by davidl — 2007-08-11T18:33:16Z
statement.c:2935 body = body->semantic(sc); should be if(body) body = body->semantic(sc);
Comment #1 by clugdbug — 2010-05-26T13:21:06Z
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 by clugdbug — 2010-08-13T22:45:06Z
There's no actual bug in this report.