Evaluate expressions fully when doing type comparisons on case statements
commit464710af397726b2cfeae04348c1ae248c738650
authorLinus Torvalds <torvalds@g5.osdl.org>
Sat, 19 Nov 2005 20:57:57 +0000 (19 12:57 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 19 Nov 2005 20:57:57 +0000 (19 12:57 -0800)
tree4458e663811eab125f62b5cd27f9b55ea03d8c88
parenta415de4790b66e7cb5954ceaa3aa7ddff8fcfda1
Evaluate expressions fully when doing type comparisons on case statements

When we check the case statement type against the type of the switch
statement it is associated with, we need to make sure that the case
expression has been fully type-evaluated.

It should have happened automatically as we evaluate the switch
statement, but if that has not happened, we'd follow a NULL pointer due
to the unevaluated type.

Thanks to Adrian Bunk for reporting a segfault for reiser4

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
evaluate.c