From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4050 invoked by alias); 21 Nov 2001 11:46: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 4024 invoked by uid 71); 21 Nov 2001 11:46:03 -0000 Date: Fri, 16 Nov 2001 21:36:00 -0000 Message-ID: <20011121114603.4023.qmail@sourceware.cygnus.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: nathan@gcc.gnu.org Subject: Re: c++/353: gcc reports both existence and non existence of constructor of template class.correct error message for legal template code with method pointer Reply-To: nathan@gcc.gnu.org X-SW-Source: 2001-11/txt/msg00408.txt.bz2 List-Id: The following reply was made to PR c++/353; it has been noted by GNATS. From: nathan@gcc.gnu.org To: brussee@mathematik.uni-bielefeld.de, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org Cc: Subject: Re: c++/353: gcc reports both existence and non existence of constructor of template class.correct error message for legal template code with method pointer Date: 21 Nov 2001 11:43:20 -0000 Synopsis: gcc reports both existence and non existence of constructor of template class.correct error message for legal template code with method pointer State-Changed-From-To: analyzed->closed State-Changed-By: nathan State-Changed-When: Wed Nov 21 03:43:19 2001 State-Changed-Why: The code is ill-formed. the mainline now reports, incomming/353.ii: In function `void __static_initialization_and_destruction_0(int, int)': incomming/353.ii:15: no matching function for call to `Y::Y(int (X::*)())' incomming/353.ii:7: candidates are: Y::Y(const Y&) incomming/353.ii:11: Y::Y(T X::*) [with T = int ()()] I.e. Y's parameter is a pointer to member of type void function returning int. NOT pointer to member function of type ... http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=353&database=gcc