------- Comment #2 from tbm at cyrius dot com 2008-09-03 09:05 ------- /* Testcase by Martin Michlmayr <[EMAIL PROTECTED]> */
template < class _CharT > struct char_traits; template < typename _CharT, typename _Traits = char_traits < _CharT > >class basic_ifstream; typedef basic_ifstream < char >ifstream; template < typename _CharT, typename _Traits > class basic_ifstream { public: void close () { } }; class gnFileSource { gnFileSource (const gnFileSource & gnfs); ifstream m_ifstream; }; gnFileSource::gnFileSource (const gnFileSource & gnfs) { #pragma omp critical m_ifstream.close (); } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37346