]> CyberLeo.Net >> Repos - FreeBSD/stable/8.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)
commit1deb1ae509b55a7a635b4e152e845e1e2cd0ef3d
tree7b155e1679ee832b1a16231ee80b475d8f833e6e
parent6ed288c90b7f403c727b4780799ce2a5e6dd77fc
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/8@275699 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/gcc/cp/name-lookup.c
contrib/gcc/cp/name-lookup.h