// { dg-do compile } // { dg-options "-O -fipa-pta" } struct basic_ios { ~basic_ios(); }; struct basic_istream : virtual basic_ios {}; template struct basic_ifstream : basic_istream { template basic_ifstream(_Path, int); }; extern template class basic_ifstream; void CompareFiles_path2() { basic_ifstream(CompareFiles_path2, 0); }