/* -*- C++ -*- */ /************************************************************************* * Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch) * * For the licensing terms see the file COPYING * ************************************************************************/ #include #include using namespace std; template T Foo(); template <> std::string Foo() { printf("Foo\n"); return ""; } int main() { // This works: Foo(); // But this fails: Foo(); // cint.exe - application error // The exception unknown software exception (0xc00000fd) occurred // in the application at location 0x100b5087. return 0; }