From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31603 invoked by alias); 31 Mar 2003 15:59:41 -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 31581 invoked by uid 48); 31 Mar 2003 15:59:41 -0000 Date: Mon, 31 Mar 2003 16:10:00 -0000 Message-ID: <20030331155941.31580.qmail@sources.redhat.com> To: darrenr@optimation.com.au, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org From: bangerth@dealii.org Reply-To: bangerth@dealii.org, darrenr@optimation.com.au, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/10273: g++ fails to compile sort() with a template operator that takes a pointer X-SW-Source: 2003-03/txt/msg02119.txt.bz2 List-Id: Synopsis: g++ fails to compile sort() with a template operator that takes a pointer State-Changed-From-To: open->closed State-Changed-By: bangerth State-Changed-When: Mon Mar 31 15:59:41 2003 State-Changed-Why: Not a bug, but for a different reason than what Gaby suspected. This template struct xLess is indeed a valid template declaration, since a class named "ClassName" has been declared previously, but it is a template with a value-parameter, not a type-parameter. Once you change that, change some pointers to values and make ClassName::x public, the code compiles. W. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10273