Go to file
Richard Smith 0511d23aeb PR22924, PR22845, some of CWG1464: When checking the initializer for an array
new expression, distinguish between the case of a constant and non-constant
initializer. In the former case, if the bound is erroneous (too many
initializer elements, bound is negative, or allocated size overflows), reject,
and take the bound into account when determining whether we need to
default-construct any elements. In the remanining cases, move the logic to
check for default-constructibility of trailing elements into the initialization
code rather than inventing a bogus array bound, to cope with cases where the
number of initialized elements is not the same as the number of initializer
list elements (this can happen due to string literal initialization or brace
elision).

This also fixes rejects-valid and crash-on-valid errors when initializing a
new'd array of character type from a braced string literal.

llvm-svn: 283406
2016-10-05 22:41:02 +00:00
clang PR22924, PR22845, some of CWG1464: When checking the initializer for an array 2016-10-05 22:41:02 +00:00
clang-tools-extra [change-namespace] Pass Style to ChangeNamespaceTool. 2016-10-05 17:00:40 +00:00
compiler-rt [compiler-rt] Enable building iOS by default. 2016-10-05 20:45:36 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Provide vstore_half helper to workaround clc restrictions 2016-09-21 20:15:55 +00:00
libcxx Comment out failing test while I figure out who is at fault 2016-10-05 18:47:18 +00:00
libcxxabi [CMake] Fix libc++abi standalone cmake build. 2016-10-03 11:08:17 +00:00
libunwind libunwind: Add OpenBSD case for _Unwind_Ptr typedef 2016-09-28 15:37:21 +00:00
lld Add exact number of streams for reserved stream #s. 2016-10-05 22:08:58 +00:00
lldb Add i386/x86_64 tests of the eh_frame augmentation code in the x86 2016-10-05 22:37:01 +00:00
llgo [llgo] add llgo source path to LLVM_GO_PACKAGES 2016-07-27 03:01:00 +00:00
llvm Add missing #include from r283039. Found by modules build. 2016-10-05 22:40:54 +00:00
openmp [cmake] Fix for a bug https://llvm.org/bugs/show_bug.cgi?id=30489 "Cannot build with -DLIBOMP_FORTRAN_MODULES=True" 2016-09-30 22:05:45 +00:00
parallel-libs [SE] Change CoreTests target name 2016-09-27 15:32:52 +00:00
polly Build and run isl_test as part of check-polly 2016-10-04 19:48:40 +00:00