]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
Pull in r217197 from upstream clang trunk (by Richard Smith):
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 29 Jan 2018 18:11:27 +0000 (18:11 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 29 Jan 2018 18:11:27 +0000 (18:11 +0000)
commit49d0b63a7d831ec94a9e4802e61fa19284681c72
tree42de0fed6361827e3e5b5bee86d45840c81981a7
parent925c028775d851d2a153c3b3b79e5513d8b8606e
Pull in r217197 from upstream clang trunk (by Richard Smith):

  PR20844: If we fail to list-initialize a reference, map to the
  referenced type before retrying the initialization to produce
  diagnostics. Otherwise, we may fail to produce any diagnostics, and
  silently produce invalid AST in a -Asserts build. Also add a note to
  this codepath to make it more clear why we were trying to create a
  temporary.

This should fix assertions when parsing some forms of incomplete list
intializers.

Direct commit to stable/9 and stable/10, since stable/11 and head
already have this upstream fix.

Reported by: ajcbowhill@gmail.com
PR: 202665

git-svn-id: svn://svn.freebsd.org/base/stable/10@328555 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.td
contrib/llvm/tools/clang/lib/Sema/SemaInit.cpp