+2011-03-11 Richard Guenther <rguenther@suse.de>
+
+ PR lto/48073
+ * tree.c (find_decls_types_r): Do not walk types only reachable
+ from IDENTIFIER_NODEs.
+
2011-03-11 Jakub Jelinek <jakub@redhat.com>
PR middle-end/48044
--- /dev/null
+/* { dg-lto-do link } */
+/* { dg-extra-ld-options "-r -nostdlib" } */
+
+struct NullType {};
+
+template <class T, class U>
+struct TList
+{
+ typedef T Head;
+ typedef U Tail;
+};
+
+template <class T>
+struct TListLength {};
+
+template <class T, class U>
+struct TListLength<TList<T,U> >
+{
+ enum
+ {
+ Ret = 1 + TListLength<U>::Ret
+ };
+};
+
+template <>
+struct TListLength<NullType>
+{
+ enum
+ {
+ Ret = 0
+ };
+};
+
+template <class Moves>
+class DDQMC
+{
+public:
+ int* moves[TListLength<Moves>::Ret];
+ inline DDQMC();
+private:
+};
+
+template <class Moves>
+DDQMC<Moves>::DDQMC()
+{
+}
+
+int main()
+{
+ typedef DDQMC< TList<float, TList<int, NullType> > > mytype;
+}
fld_worklist_push (BLOCK_ABSTRACT_ORIGIN (t), fld);
}
- fld_worklist_push (TREE_TYPE (t), fld);
+ if (TREE_CODE (t) != IDENTIFIER_NODE)
+ fld_worklist_push (TREE_TYPE (t), fld);
return NULL_TREE;
}