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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
call2.C
blob
94e4928b46a2d2c8cd86627854ad34eeb6216ad9
1
// { dg-do assemble }
2
3
struct IsCompressed { };
4
struct Field {
5
};
6
7
template<class C>
8
inline bool
9
for_each(const Field& p, IsCompressed, C)
10
{
11
return p.IsCompressed(); // { dg-error "" } calling type like a method
12
}
13
14
template bool for_each<int>(const Field& p, IsCompressed, int);