c++/313
loewis@gcc.gnu.org
loewis@gcc.gnu.org
Fri Jul 7 01:16:00 GMT 2000
The following reply was made to PR c++/313; it has been noted by GNATS.
From: loewis@gcc.gnu.org
To: brad.king@kitware.com, gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org
Cc:
Subject: Re: c++/313
Date: 7 Jul 2000 08:06:47 -0000
Synopsis: GCC 2.95.2, c++ Two structure mutual reference failure
State-Changed-From-To: open->closed
State-Changed-By: loewis
State-Changed-When: Fri Jul 7 01:06:47 2000
State-Changed-Why:
This is not a bug. According to 14.6.4.1/3, the point-of-instantiation
of AParent<int> precedes main(). The point of instantiation
of AChild<AParent<int> > immediately precedes that point, so
AParent<int> is an incomplete type when AChild<AParent<int> > is
instantiated. As a result, it is ill-formed to refer to
SharedType there.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=313&database=gcc
More information about the Gcc-prs
mailing list