Commit 5c0aa6d0 by Mark Mitchell Committed by Mark Mitchell

* method.c (build_overload_value): Handle REFERENCE_TYPE.

From-SVN: r23573
parent ec2288ff
1998-11-08 Mark Mitchell <mark@markmitchell.com>
* method.c (build_overload_value): Handle REFERENCE_TYPE.
1998-11-08 Martin von Lwis <loewis@informatik.hu-berlin.de>
* decl.c (grokdeclarator): Allow namespace-scoped members if they
......
......@@ -794,6 +794,10 @@ build_overload_value (type, value, in_template)
}
value = TREE_OPERAND (value, 0);
/* Fall through. */
case REFERENCE_TYPE:
if (TREE_CODE (value) == VAR_DECL)
{
my_friendly_assert (DECL_NAME (value) != 0, 245);
......
// Build don't link:
int i;
template <void (&FN)()>
void g ()
{
FN ();
}
void h ()
{
i = 7;
}
template void g<h>();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment