tccgen.c: local extern decls: copy s->ref for VT_PTR too
commit7b8799e5ff02184d60df34a034396dc98ac59ed0
authorgrischka <grischka>
Tue, 16 Jul 2019 15:30:04 +0000 (16 17:30 +0200)
committergrischka <grischka>
Sun, 8 Sep 2019 14:59:17 +0000 (8 16:59 +0200)
treeeeeb8062c3d7dfc52cf743687f89cbec96372a87
parent9298555eb61b17af1cf39f5859e8d94ca473e670
tccgen.c: local extern decls: copy s->ref for VT_PTR too

This fixes the issue

    int main() { extern char *x; }
    void main1() { extern char *x; }
    t2.c:5: error: incompatible types for redefinition of 'x'

(reported by Giovanni Mascellani 2019/07/16)
Makefile
tccgen.c
tests/tests2/60_errors_and_warnings.c
tests/tests2/60_errors_and_warnings.expect