This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13461] Fails to access protected-ctor from public constant


------- Additional Comments From ysbeer at af dot org dot za  2003-12-22 11:47 -------
SOrry wrong example. The following one causes the prblem: 
 
template <typename T,typename Y> 
class C 
{ 
public: 
	typedef C<T,Y> self; 
	static const self value; 
protected: 
	C() {} 
}; 
 
template <typename T,typename Y> 
C<T,Y> const C<T,Y>::value; 
 
 
int main() 
{ 
	C<int,int> const& x= C<int,int>::value; 
} 
 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13461


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]