[cfe-commits] [PATCH] for bug7505 with test cases, for initial review
Faisal Vali
faisalv at gmail.com
Sun Dec 12 21:39:30 PST 2010
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
Thanks!
-fas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: first-submission-contains-both-fixes.patch
Type: application/octet-stream
Size: 49250 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20101212/e31c64db/attachment.obj>
More information about the cfe-commits
mailing list