[3.3/3.4 regression] specialization of private members structs fails
>Submitter-Id: net
>Originator: Herbert Valerio Riedel <hvr@se-linux.ifs.tuwien.ac.at>
>Organization: The Debian Project
>Confidential: no
>Synopsis:
>Severity: critical
>Priority: medium
>Category: c++
>Class: rejects-legal
>Release: 3.3 (Debian) (Debian testing/unstable)
>Environment:
>Description:
[ Reported to the Debian BTS as report #193830.
Please CC 193830@bugs.debian.org on replies.
Log of report can be found at http://bugs.debian.org/193830 ]
3.3 and 3.4 CVS 20030501 fail 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
$
>How-To-Repeat:
>Fix:
Reply to: