[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Compound literals not working in function calls

From: Michael Matz
Subject: Re: [Tinycc-devel] Compound literals not working in function calls
Date: Thu, 15 Dec 2016 18:19:19 +0100 (CET)
User-agent: Alpine 2.20 (LSU 67 2015-01-07)


On Wed, 14 Dec 2016, David Mertens wrote:

> Here is a simple implementation of named arguments in a function call:
> http://stackoverflow.com/questions/2826128/variadic-functions-and-arguments-assignment-in-c-c/2828263#2828263
> This relies on compound literals, which I thought tcc supported. For
> example, see http://repo.or.cz/tinycc.git/blob/HEAD:/tests/tcctest.c#l1407;
> see also line 1447 in the same file.

Compound literals were support only in a limited way.  E.g. they couldn't 
be fully used in struct initializers.  After my recent mob update from 
today that should all be working fully.  I haven't tried the above thing, 
though.  If it's still not working I can have a look if somebody creates 
a smallish testcase out of it.

> Is this something that used to work and somehow slipped? Shall I run git 
> bisect on it?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]