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
add
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
explicit13.C
1
// Build don't run:
2
// GROUPS passed templates
3
4
template <class U>
5
struct S
6
{
7
template <class T>
8
void foo(T t);
9
10
template <>
11
void foo(int) { }
12
13
template <class T>
14
void bar(T t) { this->template foo<U>(3.74); }
15
};
16
17
int main()
18
{
19
S<int> s;
20
s.bar(3);
21
}