tccgen: gen_assign_cast(): cannot cast struct to scalarmob
commit1ca685f887310b5cbdc415cdfc3a578dbc8d82d8
authorgrischka <grischka>
Wed, 25 May 2016 16:52:08 +0000 (25 18:52 +0200)
committergrischka <grischka>
Wed, 25 May 2016 16:52:08 +0000 (25 18:52 +0200)
tree403efe6b4c2296128d4d0a514bea552c22cbbce5
parent9e0e05eb4ed18950b02f25efbf79ed27781fb568
tccgen: gen_assign_cast(): cannot cast struct to scalar

The case below previously was causing an assertion failure
in the target specific generator.

It probably is not incorrect not to allow this even if
gcc does.

    struct S { long b; };

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