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

friend function removes nested type declaration


Hi

The following code fails to compile with CVS gcc:

namespace std {
  class locale {
    friend void f();
    class facet;
  };
  class locale::facet {
  };
}

The error message is:

x.C:6: `std::locale' does not have a nested type named `facet'

The compiler version is 
gcc version 2.96 20000908 (experimental)

There is no error with gcc 2.95.2, or with CVS gcc if lines 3 and 4
are switched.

Philip

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