[PATCH] D44948: Add diagnostic -Waggregate-ctors, "aggregate type has user-declared constructors"

Malcolm Parsons via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 28 07:28:01 PDT 2018


malcolm.parsons added a comment.

> If no real code triggers this diagnostic, ...

Boost triggers this diagnostic:

  include/boost/core/noncopyable.hpp:23:9: error: aggregate type has user-declared constructors [-Werror,-Waggregate-ctors]
    class noncopyable
          ^
  include/boost/iterator/iterator_facade.hpp:496:9: error: aggregate type has user-declared constructors [-Werror,-Waggregate-ctors]
    class iterator_core_access
          ^
  include/boost/process/detail/posix/environment.hpp:101:7: error: aggregate type has user-declared constructors [-Werror,-Waggregate-ctors]
  class native_environment_impl<char>
        ^
  include/boost/variant/static_visitor.hpp:43:7: error: aggregate type has user-declared constructors [-Werror,-Waggregate-ctors]
  class static_visitor
        ^


Repository:
  rC Clang

https://reviews.llvm.org/D44948





More information about the cfe-commits mailing list