Display error on statement expressions with complex return type
commita80acab4fc15c3df6c062191d486518645557d2e
authorDaniel Glöckner <daniel-gl@gmx.net>
Thu, 11 Sep 2008 19:04:22 +0000 (11 21:04 +0200)
committergrischka <grischka>
Fri, 12 Sep 2008 20:23:02 +0000 (12 22:23 +0200)
tree3b79641bdcf5dc939fc1473ebf39d45404ac6aa6
parent3783b335084ef69447c8703c7b9a94687d80b1cb
Display error on statement expressions with complex return type

The return type of a statement expression (a GCC extention) may
involve elements on the symbol stack that have been put there by
the expression. These will be freed at the end of the expression
so that the calling block can not use them.

Contrary to the comment (written in 2003), this bug no longer shows
up in Valgrind, as freed symbols are now put onto a stack for later
reuse.
tcc.c