Package: gcc-3.3 Version: 1:3.3.5-12 Severity: minor Hi folks, I have a bulk of code which doesn't want to compile with new gcc 3.x.x
The problem is reduced to following example: ----- $ cat test2.c struct _struct1 { int i; int j; }; struct _struct2 { int a; int b; }; union _union1 { struct _struct1 struct1; struct _struct2 struct2; }; static union _union1 union_table[] = { (union _union1) (struct _struct1) { i: 1, j: 2, } }; int main(void) { return 0; } ---- This is not my code, please don't blame me with it! ---- [EMAIL PROTECTED]:tmp$ gcc-2.95 test2.c [EMAIL PROTECTED]:tmp$ gcc-3.3 test2.c test2.c:20: error: initializer element is not constant test2.c:20: error: (near initialization for `union_table[0]') As you see it compiles without errors with gcc-2.95 but failes with gcc-3.3 ---- Regards, Andrei -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.10 Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R) Versions of packages gcc-3.3 depends on: ii binutils 2.15-5 The GNU assembler, linker and bina ii cpp-3.3 1:3.3.5-12 The GNU C preprocessor ii gcc-3.3-base 1:3.3.5-12 The GNU Compiler Collection (base ii libc6 2.3.2.ds1-21 GNU C Library: Shared libraries an ii libgcc1 1:3.4.3-12 GCC support library -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]