This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/5348: Problems with valarrays (struct members are private)
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 11 Jan 2002 22:16:01 -0000
- Subject: Re: c++/5348: Problems with valarrays (struct members are private)
- Reply-to: Paolo Carlini <pcarlini at unitus dot it>
The following reply was made to PR c++/5348; it has been noted by GNATS.
From: Paolo Carlini <pcarlini@unitus.it>
To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org,
nobody@gcc.gnu.org, peter@snake.iap.physik.tu-darmstadt.de
Cc:
Subject: Re: c++/5348: Problems with valarrays (struct members are private)
Date: Fri, 11 Jan 2002 23:10:04 +0100
The testcase can be reduced to:
//////////////////
template<typename _Type1, typename _Type2>
class _Bin;
template<typename _Type1>
struct _Bin<_Type1, double>
{
_Bin () {}
};
_Bin<double, double> a;
//////////////////
Surprisingly, the following is ok:
/////////////////
template<typename _Type1, typename _Type2>
class _Bin;
template<typename _Type1>
class _Bin<_Type1, double>
{
public:
_Bin () {}
};
_Bin<double, double> a;
////////////////////
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5348