repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
typename1.C
blob
81e7571e8768442f45a5b67967c47c1e299b17ad
1
// { dg-do assemble }
2
// { dg-options "-pedantic -Wno-deprecated" }
3
// This code snippet should be rejected with -pedantic
4
// Based on a test case by Louidor Erez <s3824888@techst02.technion.ac.il>
5
6
7
template<class T>
8
class Vector {
9
public:
10
typedef T* iterator;
11
};
12
13
template<class T>
14
void f()
15
{
16
Vector<T>::iterator i = 0; // { dg-warning "" } missing typename
17
}