c++/6078: Template params in functions not picking up types correctly from arguments
lerdsuwa@gcc.gnu.org
lerdsuwa@gcc.gnu.org
Sun Jul 28 03:51:00 GMT 2002
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
More information about the Gcc-prs
mailing list