From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6952 invoked by alias); 1 Oct 2002 15:26: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 6933 invoked by uid 71); 1 Oct 2002 15:26:01 -0000 Resent-Date: 1 Oct 2002 15:26:01 -0000 Resent-Message-ID: <20021001152601.6932.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, benko@sztaki.hu Received: (qmail 4946 invoked by uid 61); 1 Oct 2002 15:21:13 -0000 Message-Id: <20021001152113.4945.qmail@sources.redhat.com> Date: Tue, 01 Oct 2002 08:26:00 -0000 From: benko@sztaki.hu Reply-To: benko@sztaki.hu To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/8109: static member const used in non-type template parameter X-SW-Source: 2002-10/txt/msg00008.txt.bz2 List-Id: >Number: 8109 >Category: c++ >Synopsis: static member const used in non-type template parameter >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Tue Oct 01 08:26:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: benko@sztaki.hu >Release: 3.2 >Organization: >Environment: Linux arta 2.4.18 #2 Thu Feb 28 19:27:45 CET 2002 i686 unknown >Description: Compiling the following program arta:~/c/proba$ cat static_member.cc template struct c {}; template struct a { static int const i = 0; void f(c); }; template void a::f(c) {} arta:~/c/proba$ gives arta:~/c/proba$ g++3 -c -W -Wall -ansi -pedantic static_member.cc static_member.cc:16: prototype for `void a::f(c::i>)' does not match any in class `a' static_member.cc:10: candidate is: void a::f(c::i>) static_member.cc:16: template definition of non-template `void a::f(c::i>)' zsh: exit 1 g++3 -c -W -Wall -ansi -pedantic static_member.cc arta:~/c/proba$ Of course, it can be "fixed" by an inline definition of f. Thank you, Pal Benko >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: