Bug#439836: gdc-4.1: generates invalid assembler code
Package: gdc-4.1
Version: 0.23-4.1.2-15
Severity: normal
gdc generates invalid assember code for the following fragment:
void foo (int i) {
switch (i) {
case 1: {
static int x = 1;
break;
}
case 2: {
static int x = 2;
break;
}
}
}
; gdc -c bug.d
/tmp/ccZr4AUJ.s: Assembler messages:
/tmp/ccZr4AUJ.s:13: Error: symbol `_D3bug3fooFiZv1xi' is already defined
You can work around it by giving the static variables different names.
Thanks for getting gdc in Debian.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.20-1-k7 (SMP w/1 CPU core)
Locale: LANG=nl_BE.UTF-8, LC_CTYPE=nl_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gdc-4.1 depends on:
ii g++-4.1 4.1.2-15 The GNU C++ compiler
ii gcc-4.1-base 4.1.2-15 The GNU Compiler Collection (base
ii libc6 2.6.1-1 GNU C Library: Shared libraries
ii libgcc1 1:4.2.1-4 GCC support library
ii libstdc++6 4.2.1-4 The GNU Standard C++ Library v3
ii zlib1g-dev 1:1.2.3.3.dfsg-5 compression library - development
gdc-4.1 recommends no packages.
-- no debconf information
Reply to: