This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/1016] [DR 166] friend class declarations not observing namespace rules.
- From: "lerdsuwa at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Nov 2004 16:39:36 -0000
- Subject: [Bug c++/1016] [DR 166] friend class declarations not observing namespace rules.
- References: <20001207214600.1016.jaycox@gimp.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-11-26 16:39 -------
Right. The code example in comment #1 should compile and
comment #8 should not. Class foo::b, which is still
not declared yet, is the friend of class foo::a. So this
bug is both accepts-invalid and rejects-valid.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1016