tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] [BUG] assertion failure when compiling initialization of


From: Eric Biggers
Subject: [Tinycc-devel] [BUG] assertion failure when compiling initialization of array of structs on x86_64
Date: Sun, 22 May 2016 15:09:14 -0500
User-agent: Mutt/1.6.1 (2016-04-27)

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:

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]