summaryrefslogtreecommitdiff
path: root/gcc/cp/rtti.c
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/rtti.c
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/rtti.c')
-rw-r--r--gcc/cp/rtti.c2
1 files changed, 2 insertions, 0 deletions
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))