c++/7641: friend declaration of nested types doesn't compile

Andrew Pinski pinskia@physics.uc.edu
Mon Aug 19 23:06:00 GMT 2002


The following reply was made to PR c++/7641; it has been noted by GNATS.

From: Andrew Pinski <pinskia@physics.uc.edu>
To: Detlef Vollmann <dv@vollmann.ch>
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c++/7641: friend declaration of nested types doesn't compile
Date: Mon, 19 Aug 2002 21:02:16 -0400

 This is a regression (it works) from 2.91.66:
 Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
 gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
 
 
 It ice in gcc 2.95.3 though:
 Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd3.1/2.95.3/specs
 gcc version 2.95.3 20010125 (prerelease)
 
 It gives an error in redHat's gcc 2.96:
 Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
 gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-112)
 
 friend.cc:9: typename type `typename A<T>::B' declared `friend'
 
 Thanks,
 Andrew Pinski
 



More information about the Gcc-prs mailing list