This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/10849: [3.3/3.4 regression] Cannot define an out-of-class specialization of a private nested template class
- From: giovannibajo at libero dot it
- To: gcc-gnats at gcc dot gnu dot org
- Cc: olau at hardworking dot dk
- Date: 18 May 2003 21:50:04 -0000
- Subject: c++/10849: [3.3/3.4 regression] Cannot define an out-of-class specialization of a private nested template class
- Reply-to: giovannibajo at libero dot it
>Number: 10849
>Category: c++
>Synopsis: [3.3/3.4 regression] Cannot define an out-of-class specialization of a private nested template class
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Sun May 18 21:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Giovanni Bajo
>Release: 3.3 and 3.4 (CVS 20030503)
>Organization:
>Environment:
i686-pc-cygwin
>Description:
Reported by Ole Laursen here:
http://gcc.gnu.org/ml/gcc/2003-05/msg01686.html
---------------------------------------------
class X
{
private:
template <typename T> struct Y;
};
template <>
struct X::Y<int>
{};
---------------------------------------------
gccbug5.cpp:4: error: `template<class T> struct X::Y' is private
gccbug5.cpp:9: error: within this context
Regression on the 3.3 branch and mainline (3.2.2 and 2.95
worked fine).
>How-To-Repeat:
Compile the above snippet
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: