Reject jumping inside stmtexprs
commit892c3d996f77c7874d4b2ee9f27812bca1903839
authorMichael Matz <matz@suse.de>
Sun, 4 Sep 2016 03:21:19 +0000 (4 05:21 +0200)
committerMichael Matz <matz@suse.de>
Thu, 15 Dec 2016 16:47:11 +0000 (15 17:47 +0100)
tree717383e571b3c769e809680af1d08fd0ae205882
parent1602998751c8de219514af271a3925b69a6570fb
Reject jumping inside stmtexprs

One can't jump into statement expressions from outside
them, like the following:

  int i = ({ label: foo(); 42; });
  goto label;

We reject this by making the labels simply not available
outside (GCC has a nicer error message about jumping into
a statement expression).
tccgen.c