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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
explicit31.C
blob
54f0b6c2270f2f96cdaa6046115004828e39d3a1
1
// Build don't run:
2
// GROUPS passed templates
3
// Special g++ Options: -ansi -pedantic-errors -w
4
template <class T>
5
struct S
6
{
7
template <class U>
8
static double foo(U u) { return (double) u; }
9
};
10
11
12
int main()
13
{
14
double d = S<int>::foo<char>(3.3);
15
16
return (d >= 3.1);
17
}