From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17076 invoked by alias); 30 Dec 2008 11:53:31 -0000 Received: (qmail 16732 invoked by uid 48); 30 Dec 2008 11:52:11 -0000 Date: Tue, 30 Dec 2008 11:53:00 -0000 Message-ID: <20081230115211.16731.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/37804] friend declaration leaks into global scope at template instantiation In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth 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: 2008-12/txt/msg02924.txt.bz2 ------- Comment #4 from rguenth at gcc dot gnu dot org 2008-12-30 11:52 ------- 14.6.5 [temp.inject] suggests that this is valid. EDG doesn't agree with that in strict-ansi mode. t2.C(9): error: identifier "B" is undefined B some_function(); // B should not be declared here ^ compilation aborted for t2.C (code 2) (testcase from comment #1) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37804