From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27866 invoked by alias); 18 Mar 2003 00:26:07 -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 27810 invoked by uid 48); 18 Mar 2003 00:26:07 -0000 Date: Tue, 18 Mar 2003 00:26:00 -0000 Message-ID: <20030318002607.27808.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, philippeb@videotron.ca From: bangerth@dealii.org Reply-To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, philippeb@videotron.ca, gcc-gnats@gcc.gnu.org Subject: Re: c++/10118: Conversion of ptrmem to derived class in template arg fails X-SW-Source: 2003-03/txt/msg01185.txt.bz2 List-Id: Old Synopsis: Convertion of pointer to member function to derived class at compile time New Synopsis: Conversion of ptrmem to derived class in template arg fails State-Changed-From-To: open->analyzed State-Changed-By: bangerth State-Changed-When: Tue Mar 18 00:26:06 2003 State-Changed-Why: Confirmed: ------------------------- struct A { void foo(); }; struct B : A {}; typedef void (B::*B_ptr) (); template struct CT {}; CT c; -------------------------- g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc x.cc:8: error: `{A::foo(), 0}' is not a valid template argument x.cc:8: error: it must be a pointer-to-member of the form `&X::Y' x.cc:8: error: expected constructor, destructor, or type conversion This never compiled from 2.95 to present mainline. W. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10118