[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[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
>Severity:	critical
>Priority:	medium
>Category:	c++
>Class:		rejects-legal
>Release:	3.3 (Debian) (Debian testing/unstable)
 [ 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;

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


Reply to: