[Top][All Lists]

[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 (Windows/20090812)

Eric Biggers wrote: ---

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


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


-- 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]