[cfe-commits] r72260 - in /cfe/trunk: include/clang/Parse/Parser.h lib/Parse/ParseExpr.cpp lib/Parse/ParseExprCXX.cpp lib/Parse/ParseTentative.cpp test/Parser/cxx-ambig-paren-expr.cpp

Chris Lattner clattner at apple.com
Tue Jun 2 19:28:13 PDT 2009


On Jun 2, 2009, at 7:11 PM, Argiris Kirtzidis wrote:

> Chris Lattner wrote:
> > On May 22, 2009, at 3:24 AM, Argiris Kirtzidis wrote:
> >> URL: http://llvm.org/viewvc/llvm-project?rev=72260&view=rev
> >> Log:
> >> Handle correctly a very ugly part of the C++ syntax. We cannot  
> disambiguate between a parenthesized type-id and
> >> a paren expression without considering the context past the  
> parentheses.
> >
> > Ok, way over my head :)
>
> Ignorance is bliss, I had to take a shower after this stuff.

Hehe :)

> >> +  // Type id.
> >> +  (T())x;    // expected-error {{used type 'T (void)'}}
> >
> > Shouldn't this pretty print as "T ()" in C++ mode (no void)?
>
> Good catch! Committed a fix at http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090601/017892.html
>
Thanks!

-Chris

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


More information about the cfe-commits mailing list