public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* C++ PATCH to cp_common_init_ts to fix crash in print_node
@ 2011-05-25 14:42 Jason Merrill
  0 siblings, 0 replies; only message in thread
From: Jason Merrill @ 2011-05-25 14:42 UTC (permalink / raw)
  To: gcc-patches List, Nathan Froyd

[-- Attachment #1: Type: text/plain, Size: 209 bytes --]

Trying to print a TYPE_ARGUMENT_PACK in the debugger with debug_tree 
crashes because print_node assumes that all types have TS_COMMON.  Fixed 
thus.

Tested x86_64-pc-linux-gnu, applying to trunk as obvious.

[-- Attachment #2: arg-pack-common.patch --]
[-- Type: text/x-patch, Size: 694 bytes --]

commit 7e5c923a908bffb2d8f8404f6cc7fd81a85bf932
Author: Jason Merrill <jason@redhat.com>
Date:   Tue May 24 23:16:23 2011 -0400

    	* cp-objcp-common.c (cp_common_init_ts): TYPE_ARGUMENT_PACK has
    	TS_COMMON.

diff --git a/gcc/cp/cp-objcp-common.c b/gcc/cp/cp-objcp-common.c
index ed85491..df6b1dd 100644
--- a/gcc/cp/cp-objcp-common.c
+++ b/gcc/cp/cp-objcp-common.c
@@ -241,6 +241,7 @@ cp_common_init_ts (void)
   MARK_TS_COMMON (UNDERLYING_TYPE);
   MARK_TS_COMMON (BASELINK);
   MARK_TS_COMMON (TYPE_PACK_EXPANSION);
+  MARK_TS_COMMON (TYPE_ARGUMENT_PACK);
   MARK_TS_COMMON (DECLTYPE_TYPE);
   MARK_TS_COMMON (BOUND_TEMPLATE_TEMPLATE_PARM);
   MARK_TS_COMMON (UNBOUND_CLASS_TEMPLATE);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-25 14:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-25 14:42 C++ PATCH to cp_common_init_ts to fix crash in print_node Jason Merrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).