Bug 10887 - [3.3/3.4 regression] specialization of private members structs fails
Summary: [3.3/3.4 regression] specialization of private members structs fails
Status: RESOLVED DUPLICATE of bug 10849
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 3.3
: P2 critical
Target Milestone: ---
Assignee: Wolfgang Bangerth
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2003-05-20 21:36 UTC by 193830
Modified: 2004-01-17 04:22 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 193830 2003-05-20 21:36:00 UTC
 [ 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
$

Release:
3.3 (Debian) (Debian testing/unstable)
Comment 1 Wolfgang Bangerth 2003-05-20 21:46:08 UTC
*** This bug has been marked as a duplicate of 10849 ***