This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
friend function removes nested type declaration
- To: gcc-bugs at gcc dot gnu dot org
- Subject: friend function removes nested type declaration
- From: Philip Martin <pm at corris dot dircon dot co dot uk>
- Date: 09 Sep 2000 16:27:46 +0100
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