From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20863 invoked by alias); 24 Mar 2003 17:26:14 -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 20841 invoked by uid 48); 24 Mar 2003 17:26:13 -0000 Date: Mon, 24 Mar 2003 17:46:00 -0000 Message-ID: <20030324172613.20840.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, sturgill@cs.baylor.edu From: bangerth@dealii.org Reply-To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, sturgill@cs.baylor.edu, gcc-gnats@gcc.gnu.org Subject: Re: c++/10200: Parse error for < operator X-SW-Source: 2003-03/txt/msg01603.txt.bz2 List-Id: Synopsis: Parse error for < operator State-Changed-From-To: open->analyzed State-Changed-By: bangerth State-Changed-When: Mon Mar 24 17:26:13 2003 State-Changed-Why: Confirmed. A very weird error: ------------------ template void foo() {} template struct X { struct { int foo; } node; bool bar() { return (node.foo < 5); } }; template struct X; -------------------------- Note that template function and member variable have to have the same name, to get this from 3.2.3pre and 3.3pre: g/x> /home/bangerth/bin/gcc-3.2.3-pre/bin/c++ -c x.cc x.cc: In member function `bool X::bar()': x.cc:8: parse error before `;' token Present mainline gives g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc x.cc: In member function `bool X::bar() [with T = int]': x.cc:11: instantiated from here x.cc:8: error: invalid use of `foo()' This is just as wrong. W. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10200