[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
Wed May 27 23:04:51 PDT 2009

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 :)

> +  // Type id.
> +  (T())x;    // expected-error {{used type 'T (void)'}}

Shouldn't this pretty print as "T ()" in C++ mode (no void)?


More information about the cfe-commits mailing list