// This code snippet should be rejected with -pedantic // Based on a test case by Louidor Erez // Build don't link: // Special g++ Options: -pedantic -Wno-deprecated template class Vector { public: typedef T* iterator; }; template void f() { Vector::iterator i = 0; // WARNING - missing typename }