[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

Argiris Kirtzidis akyrtzi at gmail.com
Tue Jun 2 19:11:46 PDT 2009


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.


>

>> +  // 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



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


More information about the cfe-commits mailing list