This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: PR 27640
VÃclav Haisman wrote:
>> + /* Although PROCESSING_TEMPLATE_DECL may be true at this point
>> + (because, for example, we have encountered a non-dependent
>> + function call in the body of a template function must determine
> Up to here the English makes sense to me ---------------^
> But the rest of the sentence IMHO doesn't fit in. What must determine
> which of several overloaded functions will be called?
I checked in the attached patch to fix this typo.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713
2006-06-19 Mark Mitchell <mark@codesourcery.com>
* pt.c (instantiate_template): Fix typo in comment.
Index: pt.c
===================================================================
--- pt.c (revision 114703)
+++ pt.c (working copy)
@@ -9295,9 +9295,10 @@ instantiate_template (tree tmpl, tree ta
/* Although PROCESSING_TEMPLATE_DECL may be true at this point
(because, for example, we have encountered a non-dependent
- function call in the body of a template function must determine
- which of several overloaded functions will be called), within the
- instantiation itself we are not processing a template. */
+ function call in the body of a template function and must now
+ determine which of several overloaded functions will be called),
+ within the instantiation itself we are not processing a
+ template. */
saved_processing_template_decl = processing_template_decl;
processing_template_decl = 0;
/* Substitute template parameters to obtain the specialization. */