Improve error message if using a member of an incomplete struct or union
commit606e6c47b33b1621921d57c287e69b0fa8acc975
authorPavel Roskin <proski@gnu.org>
Tue, 5 Jun 2007 22:01:46 +0000 (5 18:01 -0400)
committerJosh Triplett <josh@freedesktop.org>
Sat, 9 Jun 2007 07:24:12 +0000 (9 00:24 -0700)
tree2efdd463850f1e3c7101d41f869df3881d65f1b4
parent7a822d1021c90e5add3d4e63a527bd553e108c5e
Improve error message if using a member of an incomplete struct or union

sparse should distinguish two cases.  One is when the structure or union
is declared and the member is not found.  Another is when the structure
or union is not yet declared.  In the later case, the message should
indicate that the type is incomplete, rather than complain that the
particular member is not found.

Mention the incomplete type like gcc does, but provide the member name
too, it may be useful.

Signed-off-by: Pavel Roskin <proski@gnu.org>
evaluate.c