aboutsummaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/anonymous-struct.cpp
AgeCommit message (Collapse)AuthorFilesLines
2017-04-13Add test for anonymous struct containing an implicitly private data member.Richard Smith1-0/+3
Patch by Jacob Young! llvm-svn: 300266
2016-04-14Lit C++11 Compatibility Patch #8Charles Li1-4/+19
24 tests have been updated for C++11 compatibility. llvm-svn: 266387
2014-01-30Diagnose typedef names for linkage purposes that would changeJohn McCall1-0/+7
a previously-computed linkage as an unsupportable error condition. Per discussion on cfe-commits, this appears to be a difficult-to-resolve flaw in our implementation approach; we may pursue this as a language defect, but for now it's better to diagnose it as unsupported than to produce inconsistent results (or assertions). Anything that we can do to limit how often this diagnostic fires, such as the changes in r200380, is probably for the best, though. llvm-svn: 200438
2012-12-08Properly compute triviality for explicitly-defaulted or deleted special members.Richard Smith1-2/+2
Remove pre-standard restriction on explicitly-defaulted copy constructors with 'incorrect' parameter types, and instead just make those special members non-trivial as the standard requires. This required making CXXRecordDecl correctly handle classes which have both a trivial and a non-trivial special member of the same kind. This also fixes PR13217 by reimplementing DiagnoseNontrivial in terms of the new triviality computation technology. llvm-svn: 169667
2011-10-19Don't provide errors for anonymous unions when they're actually anonymous ↵David Blaikie1-0/+5
classes. llvm-svn: 142551
2010-08-16Emit diagnostic error when the field of an anonymous struct is non trivial.Argyrios Kyrtzidis1-0/+11
llvm-svn: 111158