From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13190 invoked by alias); 28 Apr 2003 13:56:15 -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 13166 invoked by uid 48); 28 Apr 2003 13:56:14 -0000 Date: Mon, 28 Apr 2003 13:56:00 -0000 Message-ID: <20030428135614.13165.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, gianni@mariani.ws, nobody@gcc.gnu.org From: reichelt@igpm.rwth-aachen.de Reply-To: reichelt@igpm.rwth-aachen.de, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, gianni@mariani.ws, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/10514: incorrect parsing of template instatiation with pointer-to-member variables X-SW-Source: 2003-04/txt/msg01245.txt.bz2 List-Id: Synopsis: incorrect parsing of template instatiation with pointer-to-member variables State-Changed-From-To: open->analyzed State-Changed-By: reichelt State-Changed-When: Mon Apr 28 13:56:14 2003 State-Changed-Why: Confirmed. The parser hickups affect all release versions since 2.95.x, as well as 3.3 branch and mainline. BTW, not only using i_1->A::TFUNC_A( m_b1 ); but also writing i_1->template TFUNC_A( m_b1 ); makes the code compile. The problem can also be demonstrated with the following code snippet: ============================snip here=============================== struct A { template void foo() {} }; struct B { template void bar (A* p) { p->foo<0>(); // compiler trouble } void baz (A* p) { bar<0>(p); } }; ============================snip here=============================== Regards, Volker http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10514