aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2009-11-13 13:46:39 -0500
committerJason Merrill <jason@gcc.gnu.org>2009-11-13 13:46:39 -0500
commit9dd90d8e354751116b280bfb6884d3bdd7c6dc59 (patch)
treee2fb747e8b0b8b0a7b85cf6e61850b22b6937092 /gcc/cp/decl.c
parent2b32c27d98a24ef789729ded2e0c42108a9ea9e9 (diff)
downloadgcc-9dd90d8e354751116b280bfb6884d3bdd7c6dc59.zip
gcc-9dd90d8e354751116b280bfb6884d3bdd7c6dc59.tar.gz
gcc-9dd90d8e354751116b280bfb6884d3bdd7c6dc59.tar.bz2
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
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r--gcc/cp/decl.c2
1 files changed, 1 insertions, 1 deletions
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