[C++ PATCH] Fix critical canonical-types regression

Doug Gregor doug.gregor@gmail.com
Thu Sep 4 06:20:00 GMT 2008


PR 37342 is a new canonical-types failure that popped up when we made
pointer-to-method types use the canonical types system (on trunk; we
haven't released a compiler with this bug). The issue is that
cv-qualified canonical pointer-to-method types could end up having
aliased TYPE_LANG_SPECIFIC nodes, which resulted in
TYPE_GET_PTRMEMFUNC_TYPE values that could refer to the
non-cv-qualified versions.

Assuming no regressions, okay for mainline?

  - Doug

2008-09-04  Douglas Gregor  <doug.gregor@gmail.com>

	PR c++/37342
	* tree.c (cp_build_qualified_type_real): Deal with sharing of
	TYPE_LANG_SPECIFIC in the canonical types of pointer-to-method
	types.

2008-09-04  Douglas Gregor  <doug.gregor@gmail.com>

	PR c++/37342
	* g++.dg/other/canon-37342.C: New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: canon-37342.patch
Type: text/x-patch
Size: 1343 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080904/5eaec7d1/attachment.bin>


More information about the Gcc-patches mailing list