c++/5348: Problems with valarrays (struct members are private)

Paolo Carlini pcarlini@unitus.it
Fri Jan 11 14:10:00 GMT 2002


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





More information about the Gcc-bugs mailing list