This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: does friend qualify as a forward decl?
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Tom Marshall <tommy at home dot tig-grr dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 23 Jun 2005 11:48:34 -0400
- Subject: Re: does friend qualify as a forward decl?
- References: <20050623153912.GA1404@home.tig-grr.com>
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