OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2001-02-26 Jeffrey Oldham <oldham@codesourcery.com>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
call2.C
1
// Build don't link:
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(); // ERROR - calling type like a method
12
}
13
14
template bool for_each<int>(const Field& p, IsCompressed, int); // ERROR - instantiated from here