Mercurial > projects > ddmd
comparison dmd/DotIdExp.d @ 136:9d194c848e3a
fixed a few null reference bugs, thx sagitario
author | Trass3r |
---|---|
date | Mon, 13 Sep 2010 23:27:38 +0200 |
parents | 60bb0fe4563e |
children | e3afd1303184 |
comparison
equal
deleted
inserted
replaced
132:c494af1dba80 | 136:9d194c848e3a |
---|---|
153 exps.setDim(te.exps.dim); | 153 exps.setDim(te.exps.dim); |
154 for (int i = 0; i < exps.dim; i++) | 154 for (int i = 0; i < exps.dim; i++) |
155 { | 155 { |
156 auto ee = te.exps[i]; | 156 auto ee = te.exps[i]; |
157 ee = ee.semantic(sc); | 157 ee = ee.semantic(sc); |
158 ee = new DotIdExp(e.loc, ee, Id.offsetof); | 158 ee = new DotIdExp(ee.loc, ee, Id.offsetof); |
159 exps[i] = ee; | 159 exps[i] = ee; |
160 } | 160 } |
161 e = new TupleExp(loc, exps); | 161 e = new TupleExp(loc, exps); |
162 e = e.semantic(sc); | 162 e = e.semantic(sc); |
163 return e; | 163 return e; |