From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22021 invoked by alias); 3 Nov 2009 18:40:48 -0000 Received: (qmail 21970 invoked by uid 48); 3 Nov 2009 18:40:36 -0000 Date: Tue, 03 Nov 2009 18:40:00 -0000 Message-ID: <20091103184036.21969.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/21498] [c++0x] friend declaration can name non-class with class-key In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jason at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-11/txt/msg00222.txt.bz2 ------- Comment #14 from jason at gcc dot gnu dot org 2009-11-03 18:40 ------- In C++0x the testcase is still ill-formed, but changing "friend class" to "friend typename" makes it well-formed. I'm not going to give an error for this usage until the other usage is implemented. http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2005/n1791.pdf -- jason at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[c++0x] clause 7.1.5.3/2 of |[c++0x] friend declaration |the c++ is not enforced |can name non-class with | |class-key http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21498