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)


_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to