This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
g++ 2.95.2 doesn't recognize explicit instantiation outside namespace
- To: gcc bug reports <gcc-bugs at gcc dot gnu dot org>
- Subject: g++ 2.95.2 doesn't recognize explicit instantiation outside namespace
- From: Martin Sebor <sebor at roguewave dot com>
- Date: Sat, 24 Jun 2000 23:24:54 -0600
- Organization: Rogue Wave Software, Inc.
The following program fails to compile with g++ 2.95.2. This causes many
Perennial tests to fail.
Regards
Martin
$ cat test.cpp
namespace N {
template <class T>
void foo (T) { }
}
template void N::foo<int> (int);
int main () { }
$ g++ test.cpp
test.cpp:9: `N::foo(int)' should have been declared inside `N'