[cfe-commits] r58904 - /cfe/trunk/lib/Parse/ParseDecl.cpp

Argiris Kirtzidis akyrtzi at gmail.com
Sat Nov 8 04:02:26 PST 2008


Author: akirtzidis
Date: Sat Nov  8 06:02:25 2008
New Revision: 58904

URL: http://llvm.org/viewvc/llvm-project?rev=58904&view=rev
Log:
Revert r58880, it breaks test/SemaCXX/constructor.cpp

Modified:
    cfe/trunk/lib/Parse/ParseDecl.cpp

Modified: cfe/trunk/lib/Parse/ParseDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseDecl.cpp?rev=58904&r1=58903&r2=58904&view=diff

==============================================================================
--- cfe/trunk/lib/Parse/ParseDecl.cpp (original)
+++ cfe/trunk/lib/Parse/ParseDecl.cpp Sat Nov  8 06:02:25 2008
@@ -1363,8 +1363,7 @@
     // Determine whether this identifier is a C++ constructor name or
     // a normal identifier.
     if (getLang().CPlusPlus && 
-        Actions.isCurrentClassName(*Tok.getIdentifierInfo(), CurScope) &&
-        NextToken().is(tok::l_paren))
+        Actions.isCurrentClassName(*Tok.getIdentifierInfo(), CurScope))
       D.SetConstructor(Actions.isTypeName(*Tok.getIdentifierInfo(), CurScope),
                        Tok.getIdentifierInfo(), Tok.getLocation());
     else





More information about the cfe-commits mailing list