From 9dd90d8e354751116b280bfb6884d3bdd7c6dc59 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Fri, 13 Nov 2009 13:46:39 -0500 Subject: re PR c++/29363 (ICE throwing undeclared object) PR c++/29363 * decl.c (create_implicit_typedef): Set TYPE_STUB_DECL here. (cxx_init_decl_processing): Not here. * name-lookup.c (pushtag): Or here. * pt.c (lookup_template_class): Or here. From-SVN: r154163 --- gcc/cp/decl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/cp/decl.c') diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index e23634f..0375dd5 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -849,6 +849,7 @@ create_implicit_typedef (tree name, tree type) amongst these. */ SET_DECL_IMPLICIT_TYPEDEF_P (decl); TYPE_NAME (type) = decl; + TYPE_STUB_DECL (type) = decl; return decl; } @@ -3456,7 +3457,6 @@ cxx_init_decl_processing (void) bad_alloc_decl = create_implicit_typedef (bad_alloc_id, bad_alloc_type_node); DECL_CONTEXT (bad_alloc_decl) = current_namespace; - TYPE_STUB_DECL (bad_alloc_type_node) = bad_alloc_decl; pop_namespace (); ptr_ftype_sizetype -- cgit v1.1