From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15247 invoked by alias); 17 Oct 2002 20:56:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 15228 invoked by uid 71); 17 Oct 2002 20:56:01 -0000 Resent-Date: 17 Oct 2002 20:56:01 -0000 Resent-Message-ID: <20021017205601.15227.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, sebor@roguewave.com Received: (qmail 6252 invoked by uid 61); 17 Oct 2002 20:50:14 -0000 Message-Id: <20021017205014.6251.qmail@sources.redhat.com> Date: Thu, 17 Oct 2002 13:56:00 -0000 From: sebor@roguewave.com Reply-To: sebor@roguewave.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/8266: bogus error on an explicit instantiation of a template outside its namespace X-SW-Source: 2002-10/txt/msg00692.txt.bz2 List-Id: >Number: 8266 >Category: c++ >Synopsis: bogus error on an explicit instantiation of a template outside its namespace >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Oct 17 13:56:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: sebor@roguewave.com >Release: 3.2 >Organization: >Environment: g++ 3.2 on Linux >Description: The following program fails to compile with gcc 3.2: $ cat t.cpp; g++ --version; g++ -c t.cpp namespace N { template T foo (T) { return T (); } } template int N::foo(int); g++ (GCC) 3.2 Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. t.cpp:2: non-template used as template >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: