| Summary: | [compiler] NPE when base ctor with arg lowering is used as an expression | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] Objectteams | Reporter: | Stephan Herrmann <stephan.herrmann> | ||||
| Component: | OTJ | Assignee: | Stephan Herrmann <stephan.herrmann> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | 0.7 | ||||||
| Target Milestone: | 0.7.1 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Stephan Herrmann
Created attachment 179486 [details]
fix
The lowering request triggered the InsertTypeAdjustmentsVisitor,
which traversed the BaseAllocationExpression as an Assignment,
but the lhs has not been developed (i.e., resolved), because
the node actually is not a statement but an expression,
thus the NPE.
Fixed by one more check for isExpression.
Patch has been committed as r835. Verified using I201009231632 |