1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
// PR c++/50531 // { dg-options -std=c++0x } template <typename T> class DataFilter { public: inline virtual ~DataFilter(); }; template<typename T> inline DataFilter<T>::~DataFilter() = default; class ARCalculator : public DataFilter<ARCalculator> { public: virtual void dataStart(int, int); }; void ARCalculator::dataStart(int, int) {}