summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/cxx11-crashes.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Adjust type-trait evaluation to properly handle Using(Shadow)DeclsHal Finkel2016-11-271-0/+12
| | | | | | | | | | | | | | | | Since r274049, for an inheriting constructor declaration, the name of the using declaration (and using shadow declaration comes from the using declaration) is the name of a derived class, not the base class (line 8225-8232 of lib/Sema/SemaDeclCXX.cpp in https://reviews.llvm.org/rL274049). Because of this, name-based lookup performed inside Sema::LookupConstructors returns not only CXXConstructorDecls but also Using(Shadow)Decls, which results assertion failure reported in PR29087. Patch by Taewook Oh, thanks! Differential Revision: https://reviews.llvm.org/D23765 llvm-svn: 287999
* Fix a crash when the size of an 'auto' is needed and its initalizerKaelyn Takata2015-03-171-0/+17
| | | | | | | | contained a typo correction (the auto decl was being marked as dependent unnecessarily, which triggered an assertion in cases where the size of the type is needed). llvm-svn: 232568
* If we find an error in the range expression in a range-based for loop, and theRichard Smith2013-08-211-3/+1
| | | | | | | loop variable has a type containing 'auto', set the declaration to be invalid (because we couldn't deduce its type) to prevent follow-on errors. llvm-svn: 188853
* Don't treat a non-deduced 'auto' type as being type-dependent. Instead, thereRichard Smith2013-04-301-1/+3
| | | | | | | | are now two distinct canonical 'AutoType's: one is the undeduced 'auto' placeholder type, and the other is a deduced-but-dependent type. All deduced-to-a-non-dependent-type cases are still non-canonical. llvm-svn: 180789
* When determining whether to try evaluating the initializer of a variable, checkRichard Smith2012-10-281-0/+12
| | | | | | | | | whether the initializer is value-dependent rather than whether we are in a dependent context. This allows us to detect some errors sooner, and fixes a crash-on-invalid if a dependent type leaks out to a non-dependent context in error recovery. llvm-svn: 166898
* Add a test case for the stack overflow in rdar://12542261Argyrios Kyrtzidis2012-10-271-0/+26
| | | | llvm-svn: 166858
* Fix stack overflow when trying to create an implicit movingArgyrios Kyrtzidis2012-10-101-0/+38
constructor with invalid code. rdar://12240916 llvm-svn: 165623
OpenPOWER on IntegriCloud