blob: 2921b3d3c0253de5c300ee90eef4ff8449f8fa33 [file] [log] [blame]
// This code snippet should be rejected with -pedantic
// Based on a test case by Louidor Erez <s3824888@techst02.technion.ac.il>
// Build don't link:
// Special g++ Options: -pedantic
template<class T>
class Vector {
public:
typedef T* iterator;
};
template<class T>
void f()
{
Vector<T>::iterator i = 0; // ERROR - missing typename - XFAIL *-*-*
}