summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/anonymous-struct.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Properly compute triviality for explicitly-defaulted or deleted special members.Richard Smith2012-12-081-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
* Don't provide errors for anonymous unions when they're actually anonymous ↵David Blaikie2011-10-191-0/+5
| | | | | | classes. llvm-svn: 142551
* Emit diagnostic error when the field of an anonymous struct is non trivial.Argyrios Kyrtzidis2010-08-161-0/+11
llvm-svn: 111158
OpenPOWER on IntegriCloud