This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19950] error: incomplete type `Environment' used in nested name specifier
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Feb 2005 15:41:35 -0000
- Subject: [Bug c++/19950] error: incomplete type `Environment' used in nested name specifier
- References: <20050214114402.19950.ddonovan@latentzero.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-14 15:41 -------
This comes down to the following reduced testcase:
struct Logging {
friend class Environment;
};
template<class T> struct ArrayCollection
{
int insert(const T& theObj)
{
Environment::ReportError();
}
};
This is invalid as Environment::ReportError has to be looked up at parse time and not at instainated
time.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19950