Package: tcc Version: 0.9.27~git20140923.9d7fb33-3 Severity: normal Tags: upstream
tcc fails on the following two cases: ------------------------------------------------------------ typedef struct foo foo_t; void f1 (void) { struct foo { char a; }; } void f2 (void) { struct foo { char a; }; } int main (void) { f1 (); f2 (); return 0; } ------------------------------------------------------------ where it gives: struct1.c:10: error: struct/union/enum already defined ------------------------------------------------------------ #include <stdlib.h> int main (void) { typedef struct foo foo1_t; struct foo { long a; }; typedef struct foo foo2_t; #ifdef FAIL foo1_t x; #endif foo2_t y; { struct foo { long a[4]; }; foo2_t z; return sizeof (y) == sizeof (z) ? EXIT_SUCCESS : EXIT_FAILURE; } } ------------------------------------------------------------ where it gives: struct2.c:15: error: struct/union/enum already defined I think this is already known upstream. -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores) Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages tcc depends on: ii libc6 2.19-13 Versions of packages tcc recommends: ii libc6-dev [libc-dev] 2.19-13 tcc suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org