summaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-01 00:53:10 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-01 00:53:10 +0000
commit1f37296e11285fa0fb22703837fd5c3805963451 (patch)
tree27c6e54e4363a20822f00159583705d55d800cff /gcc/cp
parentf73823e689c5114a0be1be7d7e7b8ebc39b2aa6c (diff)
downloadgcc-1f37296e11285fa0fb22703837fd5c3805963451.tar.gz
PR c++/49387
* rtti.c (get_pseudo_ti_index): Call complete_type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175743 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog3
-rw-r--r--gcc/cp/rtti.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index e3f98455c37..ad6cd0355e1 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,8 @@
2011-06-30 Jason Merrill <jason@redhat.com>
+ PR c++/49387
+ * rtti.c (get_pseudo_ti_index): Call complete_type.
+
PR c++/49569
* method.c (implicitly_declare_fn): Set DECL_PARM_LEVEL and
DECL_PARM_INDEX on rhs parm.
diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c
index 0feaf07f851..53404b4a62d 100644
--- a/gcc/cp/rtti.c
+++ b/gcc/cp/rtti.c
@@ -406,6 +406,8 @@ get_tinfo_decl (tree type)
type = build_function_type (TREE_TYPE (type),
TREE_CHAIN (TYPE_ARG_TYPES (type)));
+ type = complete_type (type);
+
/* For a class type, the variable is cached in the type node
itself. */
if (CLASS_TYPE_P (type))