[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] code block expression
From: |
Sylvain BERTRAND |
Subject: |
Re: [Tinycc-devel] code block expression |
Date: |
Tue, 25 Feb 2014 15:22:47 +0100 |
User-agent: |
Mutt/1.5.22 (2013-10-16) |
On Mon, Feb 24, 2014 at 09:06:20PM +0000, Rob wrote:
> On 24/02/14, Sylvain BERTRAND wrote:
> > Hi,
> >
> > Is there on-going effort to add the support of code block
> > expression?
> >
> > a = ({int b; b = 10; b +=1; b;});
> >
> > BTW, is this valid C code or an extension? (I'm not a compiler
> > writer, yet).
>
> $ cat expr-stmt.c
> main()
> {
> int a = ({int b; b = 10; b +=1; b;});
> return a;
> }
>
> $ tcc -run expr-stmt.c
>
> $ echo $?
> 11
>
>
> Seems fine to me? It's a GNU extension btw [1]
Weird. The guys from netsurf (the ongoing effort for a C based
modern browser) told me that did not work with tcc.
Is this a recent addition to tcc? (old version of tcc would
explain that...).
--
Sylvain