summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/crashes.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Re-commit r273548, reverted in r273589, with a fix to not produceRichard Smith2016-06-231-2/+1
| | | | | | | | | | | | | | | | -Wfor-loop-analysis warnings for a for-loop with a condition variable. In such a case, the loop condition variable is modified on each iteration of the loop by definition. Original commit message: Rearrange condition handling so that semantic checks on a condition variable are performed before the other substatements of the construct are parsed, rather than deferring them until the end. This allows better error recovery from semantic errors in the condition, improves diagnostic order, and is a prerequisite for C++17 constexpr if. llvm-svn: 273600
* Revert r273548, "Rearrange condition handling so that semantic checks on a ↵Peter Collingbourne2016-06-231-1/+2
| | | | | | | | condition variable" as it caused a regression in -Wfor-loop-analysis. llvm-svn: 273589
* Rearrange condition handling so that semantic checks on a condition variableRichard Smith2016-06-231-2/+1
| | | | | | | | | are performed before the other substatements of the construct are parsed, rather than deferring them until the end. This allows better error recovery from semantic errors in the condition, improves diagnostic order, and is a prerequisite for C++17 constexpr if. llvm-svn: 273548
* [Lit Test] Updated 34 Lit tests to be C++11 compatible.Charles Li2015-11-171-1/+7
| | | | | | | Added expected diagnostics new to C++11. Expanded RUN line to: default, C++98/03 and C++11. llvm-svn: 253371
* Port r163224 to C++.Nico Weber2015-02-181-7/+6
| | | | | | | | | | | | | | | | | | | | The motivation is to fix a crash on struct S {} s; Foo S::~S() { s.~S(); } What was happening here was that S::~S() was marked as invalid since its return type is invalid, and as a consequence CheckFunctionDeclaration() wasn't called and S::~S() didn't get merged into S's implicit destructor. This way, the class ended up with two destructors, which confused the overload printer when it suddenly had to print two possible destructors for `s.~S()`. In addition to fixing the crash, this change also seems to improve diagnostics in a few other places, see test changes. Crash found by SLi's bot. llvm-svn: 229639
* Fix for PR20660, where unexpanded parameter pack in function parameter ↵Larisse Voufo2014-08-291-0/+6
| | | | | | clause causes clang to crash. llvm-svn: 216778
* Fix error recovery in return statement.Serge Pavlov2013-12-041-0/+13
| | | | | | This patch fixes PR16989. llvm-svn: 196352
* Clear LookupResult object if invalid candidate is found.Serge Pavlov2013-09-041-0/+47
| | | | | | | 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
* Fix an incorrect assert, the LHS can be an LValue.Rafael Espindola2012-11-011-0/+12
| | | | llvm-svn: 167232
* Add a testcase from the previous bootstrap problem.Rafael Espindola2012-10-281-0/+11
| | | | llvm-svn: 166894
* Add a reduced testcase of the last bootstrap failure.Rafael Espindola2012-10-271-0/+12
| | | | llvm-svn: 166866
* Add a test case for rdar://11806334.Argyrios Kyrtzidis2012-07-191-0/+32
| | | | | | Makes sure we don't overflow the stack. llvm-svn: 160511
* ActOnCXXConditionDeclaration should take into account thatDouglas Gregor2011-07-051-0/+9
| | | | | | ActOnDeclarator can return NULL. Fixes PR10270, from Hans Wennborg! llvm-svn: 134416
* Add test from PR9026.Rafael Espindola2011-01-221-1/+19
| | | | llvm-svn: 124034
* Merge test.Rafael Espindola2011-01-201-0/+9
| | | | llvm-svn: 123914
* When determining which template partial specialization is more specialized,Argyrios Kyrtzidis2010-11-051-0/+27
| | | | | | make sure to setup the instantiation stack. Fixes rdar://8620775 & http://llvm.org/PR8234 llvm-svn: 118314
* Don't remove the init expression from the initializer list if it had a ↵Argyrios Kyrtzidis2010-10-301-0/+15
| | | | | | | | | semantic error. We already flag the error with InitListChecker's hadError and we mess up the AST unnecessarily. Fixes rdar://8605381. llvm-svn: 117760
* Add test/SemaCXX/crash-PR7625.cpp into test/SemaCXX/crashes.cppArgyrios Kyrtzidis2010-10-301-0/+7
| | | | llvm-svn: 117759
* test/SemaCXX/crash-8124080.cpp -> test/SemaCXX/crashes.cppArgyrios Kyrtzidis2010-10-301-0/+21
llvm-svn: 117758
OpenPOWER on IntegriCloud