C++ PATCH for c++/39070
Jason Merrill
jason@redhat.com
Fri Feb 13 19:50:00 GMT 2009
The problem in this PR was that we end up tsubsting the call twice: the
first time we don't perform arg-dependent lookup, but we were passing
true for koenig_p so we set KOENIG_LOOKUP_P on the CALL_EXPR and then
the second time around we do try to do arg-dependent lookup, which fails
because the call is to a template-id rather than a simple name. Fixed
by separating in finish_call_expr the notions of actually doing
arg-dependent lookup and accepting the results of same.
Tested x86_64-pc-linux-gnu, applied to trunk. Will apply to 4.3 after
testing.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 39070.patch
Type: text/x-patch
Size: 4736 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090213/e23e48ba/attachment.bin>
More information about the Gcc-patches
mailing list