Bug#193830: g++-3.3: specialization of private members structs fails
Package: g++-3.3
Version: 1:3.3-2
Severity: normal
g++-3.3 fails to compile the following code (which would compile with
previous g++ versions):
$ cat in_class_class.cc
class Foo {
template <class T> struct InFoo;
};
template<>
struct Foo::InFoo<int> {
// ...
};
$ g++ -c in_class_class.cc
in_class_class.cc:2: error: `template<class T> struct Foo::InFoo' is private
in_class_class.cc:6: error: within this context
$
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux lfdux.ifs.tuwien.ac.at 2.4.20-1-k7 #1 Sat Mar 22 15:17:52 EST 2003 i686
Locale: LANG=C, LC_CTYPE=C
Versions of packages g++-3.3 depends on:
ii gcc-3.3 1:3.3-2 The GNU C compiler
ii gcc-3.3-base 1:3.3-2 The GNU Compiler Collection (base
ii libc6 2.3.1-17 GNU C Library: Shared libraries an
ii libstdc++5-3.3-dev 1:3.3-2 The GNU Standard C++ Library v3 (d
-- no debconf information
Reply to: