summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/drs/dr9xx.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Parse] Allow 'constexpr' in condition declarationsMeador Inge2015-06-251-0/+29
| | | | | | | | | | | | | | | | | This patch implements the functionality specified by DR948. The changes are two fold. First, the parser was modified to allow 'constexpr's to appear in condition declarations (which was a hard error before). Second, Sema was modified to cleanup maybe odr-used declarations by way of a call to 'ActOnFinishFullExpr'. As 'constexpr's were not allowed in condition declarations before the cleanup wasn't necessary (such declarations were always odr-used). This fixes PR22491. Differential Revision: http://reviews.llvm.org/D8978 llvm-svn: 240707
* Run DR tests in C++17 mode too.Richard Smith2014-09-281-1/+2
| | | | llvm-svn: 218580
* Implement DR990 and DR1070. Aggregate initialization initializes uninitializedRichard Smith2014-06-031-0/+45
elements from {}, rather than value-initializing them. This permits calling an initializer-list constructor or constructing a std::initializer_list object. (It would also permit initializing a const reference or rvalue reference if that weren't explicitly prohibited by other rules.) llvm-svn: 210091
OpenPOWER on IntegriCloud