summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/drs
Commit message (Collapse)AuthorAgeFilesLines
...
* Tests for core issue 241-250.Richard Smith2013-11-172-1/+124
| | | | llvm-svn: 194951
* Tests for core issues 224-240.Richard Smith2013-11-171-0/+188
| | | | llvm-svn: 194946
* Tests for core issue 216-223.Richard Smith2013-11-151-0/+106
| | | | llvm-svn: 194795
* DR408: If a static data member of incomplete array type is declared in a classRichard Smith2013-11-141-0/+32
| | | | | | | | | | template, that member has a dependent type (even if we can see the definition of the member of the primary template), because the array size could change in a member specialization. Patch by Karthik Bhat! llvm-svn: 194740
* Tests for core issue 201-215.Richard Smith2013-11-121-0/+101
| | | | llvm-svn: 194458
* clang/test/CXX/drs/dr1xx.cpp: Add explicit triple x86_64-unknown-unknown to ↵NAKAMURA Takumi2013-11-081-3/+3
| | | | | | | | | | | | satisfy check7a and check8a since r194240. For i686 targets and LLP64 targets, we can see; error: 'error' diagnostics seen but not expected: File clang/test/CXX/drs/dr1xx.cpp Line 761: 'check7a' declared as an array with a negative size File clang/test/CXX/drs/dr1xx.cpp Line 765: 'check8a' declared as an array with a negative size 2 errors generated. llvm-svn: 194246
* Tests for core issue 170-200.Richard Smith2013-11-082-0/+297
| | | | llvm-svn: 194240
* Tests for CWG issue 165-170.Richard Smith2013-11-071-0/+54
| | | | llvm-svn: 194215
* Tests for DR150 - DR165.Richard Smith2013-11-071-0/+114
| | | | llvm-svn: 194192
* Implement final resolution of DR1402: implicitly-declared move operators thatRichard Smith2013-11-041-1/+1
| | | | | | | | | | | would be deleted are still declared, but are ignored by overload resolution. Also, don't delete such members if a subobject has no corresponding move operation and a non-trivial copy. This causes us to implicitly declare move operations in more cases, but risks move-assigning virtual bases multiple times in some circumstances (a warning for that is to follow). llvm-svn: 193969
* PR17567: Improve diagnostic for a mistyped constructor name. If we see somethingRichard Smith2013-10-151-2/+6
| | | | | | | | | | | that looks like a function declaration, except that it's missing a return type, try typo-correcting it to the relevant constructor name. In passing, fix a bug where the missing-type-specifier recovery codepath would drop a preceding scope specifier on the floor, leading to follow-on diagnostics and incorrect recovery for the auto-in-c++98 hack. llvm-svn: 192644
* Switch the semantic DeclContext for a block-scope declaration of a function orRichard Smith2013-09-201-10/+7
| | | | | | | | | | | | | | variable from being the function to being the enclosing namespace scope (in C++) or the TU (in C). This allows us to fix a selection of related issues where we would build incorrect redeclaration chains for such declarations, and fail to notice type mismatches. Such declarations are put into a new IdentifierNamespace, IDNS_LocalExtern, which is only found when searching scopes, and not found when searching DeclContexts. Such a declaration is only made visible in its DeclContext if there are no non-LocalExtern declarations. llvm-svn: 191064
* Sema: Diagnose explicitly bound unresolved member expressions decaying into ↵David Majnemer2013-08-011-0/+1
| | | | | | | | | | | | | pointers to function type We would disallow the case where the overloaded member expression is coming from an address-of operator but we wouldn't issue any diagnostics when the overloaded member expression comes by way of a function to pointer decay cast. Clang's implementation of DR61 is now seemingly complete. llvm-svn: 187559
* Implement DR136David Majnemer2013-06-251-12/+26
| | | | | | | Friend declarations that specify a default argument must be a definition and the only declaration in the translation unit. llvm-svn: 184889
* Implement DR21David Majnemer2013-06-251-4/+3
| | | | | | | | | | A default template-argument shall not be specified in a friend template declaration. Interestingly, we properly handled default template arguments on friend class members but not on just friend classes. llvm-svn: 184882
* Revert r184401 which reverted r183462.David Majnemer2013-06-221-3/+6
| | | | | | | | | | | | The problem with r183462 was that we assumed that a diagnostic id of zero would be silent. This small correction to CheckDerivedToBaseConversion changes it's behavior to omit the diagnostic when given a diagnostic id of zero. This fix passes the test case added in r184402. llvm-svn: 184631
* Add a regression test for PR16370 next to the dr7 test case since theyChandler Carruth2013-06-201-0/+12
| | | | | | | seem closely related. (I'm happy to move this if others have a better idea of where to put it.) llvm-svn: 184402
* Temporarily revert r183462: "Implement DR7"Chandler Carruth2013-06-201-6/+3
| | | | | | This fixes PR16370, I'll add the test case in a follow-up commit. llvm-svn: 184401
* DR14, DR101, and part of DR1: fix handling of extern "C" declarations inRichard Smith2013-06-182-21/+17
| | | | | | | namespaces, by treating them just like we treat extern "C" declarations in function scope. llvm-svn: 184223
* Avoid using __SIZE_TYPE__ in a -std=c++98 -pedantic-errors test, because thatRichard Smith2013-06-171-1/+1
| | | | | | triggers an error on MS targets where __SIZE_TYPE__ expands to 'long long'. llvm-svn: 184096
* Add tests for C++ DR100-150.Richard Smith2013-06-161-0/+541
| | | | llvm-svn: 184057
* Add testcase for DR39 from PR5916.Richard Smith2013-06-161-0/+12
| | | | llvm-svn: 184056
* Fix some confusing diagnostic wording. s/implicit default/implicit/ if we'reRichard Smith2013-06-131-1/+1
| | | | | | not actually talking about a default constructor. llvm-svn: 183885
* Implement DR61: Address of ambiguous bound methods should be disallowedDavid Majnemer2013-06-111-3/+2
| | | | | | | DR61 affirms that expressions containing unresolved member access should be disallowed when performing "address of" operations. llvm-svn: 183723
* Implement DR85: Redeclaration of member is forbiddenDavid Majnemer2013-06-111-7/+23
| | | | | | | Disallow the existence of a declaration of a member class that isn't a forward declaration before it's definition. llvm-svn: 183722
* Implement DR7David Majnemer2013-06-061-3/+6
| | | | | | | | Disallowing deriving from classes that have private virtual base classes except in instances where the deriving class would be able to cast itself to the private virtual base via a different derivation. llvm-svn: 183462
* Tests and status for DR51-99.Richard Smith2013-05-261-10/+510
| | | | llvm-svn: 182720
* Tests and status for core issues 1-50.Richard Smith2013-05-191-0/+504
llvm-svn: 182207
OpenPOWER on IntegriCloud