This is the mail archive of the gcc@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]

Re: does friend qualify as a forward decl?



On Jun 23, 2005, at 11:39 AM, Tom Marshall wrote:


I've been playing with GCC 4.0 recently and discovered that the code below
does not compile with Debian's 4.0.0-9 package. The changelog for that
package says:


* Update to CVS 20050522, taken from the gcc-4_0-branch.

Note that the code compiles fine with GCC 3.3.5 (Debian), GCC 4.0.0 (RHEL4),
Sun Workshop, and MSVC.


I'm not terribly familiar with the C++ standard on this point -- can someone
tell me whether this should compile or not and, if yes, will this be fixed
when 4.0.1 is released?

This is invalid code. This is annotated in PR 1016, 19403, and DR 1016.


Thanks,
Andrew Pinski


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