[all-commits] [llvm/llvm-project] 1b5404: PR44540: Prefer an inherited default constructor o...

Richard Smith via All-commits all-commits at lists.llvm.org
Tue Jan 14 19:31:31 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1b5404aff37953ce4c10191d04872ed7c2dc6548
      https://github.com/llvm/llvm-project/commit/1b5404aff37953ce4c10191d04872ed7c2dc6548
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2020-01-14 (Tue, 14 Jan 2020)

  Changed paths:
    M clang/lib/AST/DeclCXX.cpp
    M clang/lib/Sema/SemaInit.cpp
    M clang/test/CXX/dcl.decl/dcl.init/dcl.init.list/p3.cpp

  Log Message:
  -----------
  PR44540: Prefer an inherited default constructor over an initializer
list constructor when initializing from {}.

We would previously pick between calling an initializer list constructor
and calling a default constructor unstably in this situation, depending
on whether the inherited default constructor had already been used
elsewhere in the program.




More information about the All-commits mailing list