merge from gcc

This commit is contained in:
DJ Delorie
2005-07-03 19:16:20 +00:00
parent 2f4535c7eb
commit 6ba85b8caf
7 changed files with 61 additions and 2 deletions

View File

@@ -2337,7 +2337,11 @@ d_expr_primary (struct d_info *di)
}
s = d_str (di);
while (d_peek_char (di) != 'E')
d_advance (di, 1);
{
if (d_peek_char (di) == '\0')
return NULL;
d_advance (di, 1);
}
ret = d_make_comp (di, t, type, d_make_name (di, s, d_str (di) - s));
}
if (d_next_char (di) != 'E')