tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] [BUG] assertion failure when compiling initialization


From: grischka
Subject: Re: [Tinycc-devel] [BUG] assertion failure when compiling initialization of array of structs on x86_64
Date: Wed, 25 May 2016 18:54:21 +0200
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Eric Biggers wrote: ---
Hello,

When I tried compiling some of my code with tcc, I encountered an assertion
failure, which I have reduced to the following minimal example:

Hello,

Could it be that a compiler not necessarily needs to support this?

http://repo.or.cz/tinycc.git/commitdiff/1ca685f887310b5cbdc415cdfc3a578dbc8d82d8

-- gr

struct S {
        long a;
};

void f(struct S *x)
{
        struct S y[1] = { *x };
}

$ tcc -c bug.c
tcc: x86_64-gen.c:418: load: Assertion `((ft & VT_BTYPE) == VT_INT) || ((ft & VT_BTYPE) == 
VT_LLONG) || ((ft & VT_BTYPE) == VT_PTR) || ((ft & VT_BTYPE) == VT_ENUM) || ((ft & 
VT_BTYPE) == VT_FUNC)' failed.
Aborted (core dumped)




reply via email to

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