summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/dependent-sized_array.cpp
Commit message (Collapse)AuthorAgeFilesLines
* PR13788: Don't perform checks on the initializer of a dependently-typedRichard Smith2012-11-091-0/+11
| | | | | | | | | variable. Previously we didn't notice the type was dependent if the only dependence came from an array bound. Patch by Brian Brooks! llvm-svn: 167642
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Deduce a ConstantArrayType from a value-dependent initializer listDouglas Gregor2009-11-191-1/+8
| | | | | | | rather than punting to a DependentSizedArrayType, tightening up our type checking for template definitions. Thanks, John! llvm-svn: 89407
* Cope with an amusingly little anomaly with dependent types andDouglas Gregor2009-11-191-0/+10
incomplete array initialization, where we have the following in a template: int a[] = { 1, 2, something-value-dependent }; // ... sizeof(a); The type of "a" appears to be a non-dependent IncompleteArrayType, but treating it as such makes the sizeof(a) fail at template definition time. We now correctly handle this by morphing the IncompleteArrayType into a DependentSizedArrayType with a NULL expression, indicating that its size has no corresponding expression (and, therefore, the type is distinct from others). llvm-svn: 89366
OpenPOWER on IntegriCloud