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++/6078: Template params in functions not picking up types correctly from arguments


Synopsis: Template params in functions not picking up types correctly from arguments

State-Changed-From-To: analyzed->closed
State-Changed-By: lerdsuwa
State-Changed-When: Sun Jul 28 03:51:08 2002
State-Changed-Why:
    Not a bug.  The displayed candidate cannot be used.
    You are initializing the type 'volatile int*&'
    with an lvalue returning from the function call ret_func()
    which is not allowed.  An lvalue can only initialize a 
    reference of non-volatile constant type (via a temporary 
    variable).  See Section 8.5.3 p4 in the standard for more
    details.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6078


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