]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r275477:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 11 Dec 2014 08:05:59 +0000 (08:05 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 11 Dec 2014 08:05:59 +0000 (08:05 +0000)
commitf5aed9c46d5e2ea4f30bd9e732f266428681ba0f
tree96b494914b5a8b3c33e563e60796dcecc629c417
parentbad0f2960b51b74be47d6485e5f51969302c8af6
MFC r275477:

Pull in r174303 from upstream gcc trunk (by Jason Merrill):

  PR c++/48211
  * name-lookup.h (cp_class_binding): Make base a pointer.
  * name-lookup.c (new_class_binding): Adjust.
  (poplevel_class): Adjust.

This fixes a potential segfault when compiling gold, a part of the
devel/binutils port, with gcc.  See also the upstream bug report:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48211

Thanks to Jason Merrill, Tom Callaway and Red Hat legal for approving
the use of this patch under the GNU GPL, version 2 or later.

git-svn-id: svn://svn.freebsd.org/base/stable/9@275699 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/gcc/cp/name-lookup.c
contrib/gcc/cp/name-lookup.h