1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
// { dg-do assemble } // PRMS Id: 4688 // Bug: g++ can't deal with templates instantiated within extern "C". class Gnaf { public: virtual int invariant (); }; template <class T> class Array : public Gnaf { public: virtual int invariant(); }; extern "C" int foo() { Array<int> toConv; return 0; }