1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
// { dg-lto-do link } // { dg-lto-options {{-fPIC}} } // { dg-extra-ld-options "-fPIC -r -nostdlib" } class DataArray { int max() const { } }; template < class HashItem > class DataHashTable { template < class ElemHashItem > class Element { }; typedef Element< HashItem > Elem; DataArray m_elem; }; class Name { }; class NameSet { DataHashTable < Name > hashtab; }; NameSet p;