llvm-project/clang/include
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-c [libclang] Add missing CINDEX_LINKAGE from a function. 2016-02-07 18:21:28 +00:00
CMakeLists.txt