]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r280864:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 6 Apr 2015 14:50:54 +0000 (14:50 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 6 Apr 2015 14:50:54 +0000 (14:50 +0000)
commitb859975277aa3c4f14a0aec90fbe607d79120a68
tree56ee563bb6ca3e74a294177c3c7fede9e703307d
parenteaa99c12cf580fdad64d43a6cd349ddc6ba028bb
MFC r280864:

Pull in r233552 from upstream libc++ trunk (by Eric Fiselier):

  [libcxx] Fix PR22771 - Support access control SFINAE in the library
  version of is_convertible.

  Summary:
  Currently the conversion check does not take place in a context where
  access control SFINAE is applied. This patch changes the context of
  the test expression so that SFINAE occurs if access control does not
  permit the conversion.

  Related bug: https://llvm.org/bugs/show_bug.cgi?id=22771

  Reviewers: mclow.lists, rsmith, dim

  Reviewed By: dim

  Subscribers: dim, rodrigc, emaste, cfe-commits

  Differential Revision: http://reviews.llvm.org/D8461

This fixes building clang, and other programs using libc++, with newer
versions of gcc (specifically, gcc 4.8 and higher).

Reported by: rodrigc

git-svn-id: svn://svn.freebsd.org/base/stable/10@281149 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/libc++/include/type_traits