[cfe-commits] [PATCH] [Review Request] for bug7505 with test cases, for initial review
faisalv at gmail.com
Fri Dec 31 16:14:48 PST 2010
(no rush - am delighted variadic templates has been getting some
serious attention - just wanted to make sure this patch review wasn't
Happy new year to all :)
On Sun, Dec 12, 2010 at 11:39 PM, Faisal Vali <faisalv at gmail.com> wrote:
> Once again Doug - sorry for the delay.
> To recap, this patch is intended to completely fix bug7505 and allow
> the following code:
> template<class T> void f();
> template<class T, class U> T f(U);
> bool b = f<int>;
> int i = (int) f<int>;
> I tried two approaches in fixing this bug - patching BuildTemplateID
> vs patching each of the casts and the standard conversions.
> Patching BuildTemplateId did not work because it would bypass overload
> resolution (unless i detect trailing lparens) in certain cases and
> create confusing results.
> Please let me know what your initial thoughts are and i can clean the
> patch up and resubmit.
> I tested against SemaCXX, CXX, Sema, SemaTemplate
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 49250 bytes
Desc: not available
More information about the cfe-commits