Package: gcc-snapshot Version: 20040215-1 Severity: important Tags: sid Hi,
the following code doesn't compile: void bla(const char&) {}; void bla(const int&) {}; template<typename T> void foo() { void (*g)(const T&) = bla; } void bla(const double&) {}; int main() { foo<double>(); return 0; } If I move bla(const double&) in front of the template it compiles. Cheers, André -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.2-1-k7 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] Versions of packages gcc-snapshot depends on: ii binutils 2.14.90.0.7-5 The GNU assembler, linker and bina ii libart-2.0-2 2.3.16-1 Library of functions for 2D graphi ii libatk1.0-0 1.4.1-1 The ATK accessibility toolkit ii libc6 2.3.2.ds1-11 GNU C Library: Shared libraries an ii libglib2.0-0 2.2.3-1 The GLib library of C routines ii libgtk2.0-0 2.2.4-3 The GTK+ graphical user interface ii libice6 4.3.0-2 Inter-Client Exchange library ii libpango1.0-0 1.2.5-2.1 Layout and rendering of internatio ii libsm6 4.3.0-2 X Window System Session Management ii libx11-6 4.3.0-2 X Window System protocol client li ii xlibs 4.3.0-2 X Window System client libraries m ii zlib1g 1:1.2.1-4 compression library - runtime -- no debconf information