diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/decl.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index e707054..b451266 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2000-05-30 Jason Merrill <jason@decepticon.cygnus.com> + + * decl.c (grok_reference_init): Pass LOOKUP_ONLYCONVERTING. + 2000-05-30 Mark Mitchell <mark@codesourcery.com> * call.c (add_template_candidate_real): Handle member template diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index a5ee51a..cbee8e6 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -7409,7 +7409,8 @@ grok_reference_init (decl, type, init) first. */ tmp = convert_to_reference (type, init, CONV_IMPLICIT, - LOOKUP_SPECULATIVELY|LOOKUP_NORMAL|DIRECT_BIND, decl); + LOOKUP_ONLYCONVERTING|LOOKUP_SPECULATIVELY|LOOKUP_NORMAL|DIRECT_BIND, + decl); if (tmp == error_mark_node) return; |