[cfe-commits] r145127 - in /cfe/trunk: lib/Sema/SemaExpr.cpp lib/Sema/SemaOverload.cpp test/SemaTemplate/ms-lookup-template-base-classes.cpp

Matthieu Monrocq matthieu.monrocq at gmail.com
Fri Nov 25 13:19:06 PST 2011


Le 25 novembre 2011 21:29, Francois Pichet <pichet2000 at gmail.com> a écrit :

> On Fri, Nov 25, 2011 at 1:41 PM, Matthieu Monrocq
> <matthieu.monrocq at gmail.com> wrote:
> >
> >
> > Le 25 novembre 2011 02:10, Francois Pichet <pichet2000 at gmail.com> a
> écrit :
> >>
> >> Author: fpichet
> >> Date: Thu Nov 24 19:10:54 2011
> >> New Revision: 145127
> >>
> >> URL: http://llvm.org/viewvc/llvm-project?rev=145127&view=rev
> >> Log:
> >> In Microsoft mode, make "Unqualified lookup into dependent bases of
> class
> >> templates" works  inside a friend function definition at class scope.
> >>
> >> Basically we have to look into the parent *lexical* DeclContext for
> friend
> >> functions at class scope. That's because calling GetParent() return the
> >> namespace or file DeclContext.
> >>
> >> This fixes all remaining cases of "Unqualified lookup into dependent
> bases
> >> of class templates" when parsing MFC code with clang.
> >
> > Wow nice!
> >
> > Just for our information, could you tell us what is missing for parsing
> MFC
> > at the moment ? If I remember the previous point you had made, you might
> be
> > getting very close by now.
> >
>
> clang is 2 issues away from being able to parse (-fsyntax-only) the
> default wizard generated MFC app.
>
> 1. There is the missing typename patch I submitted 3 weeks ago. I am
> going to ping dgregor about it when he comes back.
> 2. cl.exe allows creating a pointer to a member function in a cast by
> just naming the function as in OnMember instead of &CLASS::OnMember.
>

Wow!

Many thanks for the heads-up, looks like you are extremely close indeed...
"Courage!"

-- Matthieu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111125/cc653fe1/attachment.html>


More information about the cfe-commits mailing list