[Bug c++/19950] error: incomplete type `Environment' used in nested name specifier

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Feb 14 20:05:00 GMT 2005


------- 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



More information about the Gcc-bugs mailing list