changeset 98 | d0cdf1d00b74 |
parent 87 | b97f9ad7b2c6 |
child 118 | d4cf7ea933a4 |
--- a/stage4/generate_iec/generate_iec.cc Sat Nov 17 10:08:38 2007 +0100 +++ b/stage4/generate_iec/generate_iec.cc Thu Dec 06 18:01:58 2007 +0100 @@ -356,9 +356,11 @@ /* integer_type_name '(' subrange')' */ void *visit(subrange_specification_c *symbol) { symbol->integer_type_name->accept(*this); - s4o.print("("); - symbol->subrange->accept(*this); - s4o.print(")"); + if (symbol->subrange != NULL) { + s4o.print("("); + symbol->subrange->accept(*this); + s4o.print(")"); + } return NULL; }