* 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
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.
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))
2011-06-30 Jason Merrill <jason@redhat.com>
+ PR c++/49387
+ * g++.dg/rtti/template1.C: New.
+
PR c++/49569
* g++.dg/cpp0x/regress/ctor1.C: New.
--- /dev/null
+// PR c++/49387
+
+#include <typeinfo>
+
+struct ResourceMonitorClient { };
+
+template <typename T> struct ResourcePool : public ResourceMonitorClient {
+ virtual ~ResourcePool() { }
+};
+
+template <typename T> struct BaseWriter {
+
+ BaseWriter() {
+ typeid(ResourcePool<int>*);
+ }
+
+ virtual void run() {
+ ResourcePool<int> pool;
+ }
+
+};
+
+BaseWriter<void> b;