public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* 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
@ 2001-11-16 21:36 nathan
0 siblings, 0 replies; 2+ messages in thread
From: nathan @ 2001-11-16 21:36 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
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<int ()()>::Y(int
(X::*)())'
incomming/353.ii:7: candidates are: Y<int ()()>::Y(const Y<int ()()>&)
incomming/353.ii:11: Y<T>::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
^ permalink raw reply [flat|nested] 2+ messages in thread
* 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
@ 2001-11-16 21:36 nathan
0 siblings, 0 replies; 2+ messages in thread
From: nathan @ 2001-11-16 21:36 UTC (permalink / raw)
To: brussee, gcc-bugs, gcc-gnats, gcc-prs, nobody
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<int ()()>::Y(int
(X::*)())'
incomming/353.ii:7: candidates are: Y<int ()()>::Y(const Y<int ()()>&)
incomming/353.ii:11: Y<T>::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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-11-21 11:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-16 21:36 c++/353: gcc reports both existence and non existence of constructor of template class.correct error message for legal template code with method pointer nathan
2001-11-16 21:36 nathan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).