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

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


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
 
 
 



More information about the Gcc-prs mailing list