This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

[Get raw message]
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]