Serge Pavlov
f79bd5cb9d
Fix error recovery in return statement.
...
This patch fixes PR16989.
llvm-svn: 196352
2013-12-04 03:51:59 +00:00
Serge Pavlov
8260530cb2
Clear LookupResult object if invalid candidate is found.
...
If source code is invalid, error recovery can lead to name lookup in a set containing invalid declaration. The lookup is stopped once found such declaration, but LookupResult object could remain in inconsistent state. Its destructor triggered a check, which caused assert violation.
This patch fixes PR16964 and PR12791.
llvm-svn: 189916
2013-09-04 04:50:29 +00:00
Rafael Espindola
973aa207e8
Fix an incorrect assert, the LHS can be an LValue.
...
llvm-svn: 167232
2012-11-01 14:32:20 +00:00
Rafael Espindola
c74634fe48
Add a testcase from the previous bootstrap problem.
...
llvm-svn: 166894
2012-10-28 02:25:27 +00:00
Rafael Espindola
bb5d47ef15
Add a reduced testcase of the last bootstrap failure.
...
llvm-svn: 166866
2012-10-27 04:54:49 +00:00
Argyrios Kyrtzidis
ac4cdc8ef4
Add a test case for rdar://11806334.
...
Makes sure we don't overflow the stack.
llvm-svn: 160511
2012-07-19 16:08:28 +00:00
Douglas Gregor
1fe12c9eba
ActOnCXXConditionDeclaration should take into account that
...
ActOnDeclarator can return NULL. Fixes PR10270, from Hans Wennborg!
llvm-svn: 134416
2011-07-05 16:13:20 +00:00
Rafael Espindola
b53c03be8a
Add test from PR9026.
...
llvm-svn: 124034
2011-01-22 15:34:07 +00:00
Rafael Espindola
ec4b30a1e8
Merge test.
...
llvm-svn: 123914
2011-01-20 16:11:21 +00:00
Argyrios Kyrtzidis
7d391557cc
When determining which template partial specialization is more specialized,
...
make sure to setup the instantiation stack. Fixes rdar://8620775 & http://llvm.org/PR8234
llvm-svn: 118314
2010-11-05 23:25:18 +00:00
Argyrios Kyrtzidis
93513155e7
Don't remove the init expression from the initializer list if it had a semantic error.
...
We already flag the error with InitListChecker's hadError and we mess up the AST unnecessarily.
Fixes rdar://8605381.
llvm-svn: 117760
2010-10-30 01:06:26 +00:00
Argyrios Kyrtzidis
b5488f45db
Add test/SemaCXX/crash-PR7625.cpp into test/SemaCXX/crashes.cpp
...
llvm-svn: 117759
2010-10-30 01:06:23 +00:00
Argyrios Kyrtzidis
0f24185c76
test/SemaCXX/crash-8124080.cpp -> test/SemaCXX/crashes.cpp
...
llvm-svn: 117758
2010-10-30 01:06:21 +00:00