Go to file
Nico Weber 72c57f49c4 Fix rejects-valid caused by r261297.
r261297 called hasUserProvidedDefaultConstructor() to check if defining a
const object is ok.  This is incorrect for this example:

  struct X { template<typename ...T> X(T...); int n; };
  const X x; // formerly OK, now bogus error

Instead, track if a class has a defaulted default constructor, and disallow
a const object for classes that either have defaulted default constructors or
if they need an implicit constructor.

Bug report and fix approach by Richard Smith, thanks!

llvm-svn: 261770
2016-02-24 20:58:14 +00:00
clang Fix rejects-valid caused by r261297. 2016-02-24 20:58:14 +00:00
clang-tools-extra [clang-tidy] introduce modernize-deprecated-headers check 2016-02-24 13:36:34 +00:00
compiler-rt [MSAN] Fix memcmp_test on MIPS 2016-02-24 13:48:14 +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 math: Fix ilogb(double) return type 2016-02-24 00:52:15 +00:00
libcxx Fix a missing closing tag 2016-02-23 19:48:44 +00:00
libcxxabi [libcxxabi] Teach cxa_demangle about Hexagon's long double size 2016-01-20 14:10:23 +00:00
libunwind [AArch64] Fix libunwind build when using GNU assembler 2016-02-11 21:22:57 +00:00
lld Mark R_AARCH64_LDST64_ABS_LO12_NC as relative. 2016-02-24 20:52:58 +00:00
lldb Removed unused functions. 2016-02-24 20:47:13 +00:00
llgo [llgo] Force exporting __morestack from llgoi 2015-11-27 04:46:46 +00:00
llvm MachineInstr: Respect register aliases in clearRegiserKills() 2016-02-24 19:21:48 +00:00
openmp Remove unnecessary semicolons after braces 2016-02-18 19:38:25 +00:00
polly Annotation of SIMD loops 2016-02-23 09:00:13 +00:00