Fix parsing of class specifiers before '\n' 'operator'.
authorNico Weber <nicolasweber@gmx.de>
Fri, 18 Jan 2013 18:41:42 +0000 (18:41 +0000)
committerNico Weber <nicolasweber@gmx.de>
Fri, 18 Jan 2013 18:41:42 +0000 (18:41 +0000)
commit0bba2d11d08e7cf6c9e475cb6736395a10a95872
treeb33a4eb7ff78223b3cf44ddce73978f719d7da71
parent1dc394038363dba10aec20e337f0ae077dce8f60
Fix parsing of class specifiers before '\n' 'operator'.

r159549 / r159164 regressed clang to reject

  struct s {};
  struct s
  operator++(struct s a)
  { return a; }

This fixes the regression. Richard, pleas check if this looks right.

llvm-svn: 172834
clang/lib/Parse/ParseDeclCXX.cpp
clang/test/Parser/cxx-decl.cpp