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
/
deduct1.C
blob
c48fa0808b2248dd5e7ec61cd395b5dfc080b382
1
// { dg-do assemble }
2
3
template<class CoordinateSystem, class MeshTag>
4
struct Mesh { };
5
6
struct RectGrid { };
7
8
struct RectMesh { };
9
10
struct Cartesian { };
11
12
template<class CS>
13
struct Mesh<CS, RectGrid> { };
14
15
template<class CS>
16
struct Mesh<CS, RectMesh> : public Mesh<CS, RectGrid> { };
17
18
template<class CS>
19
void foo(const Mesh<CS, RectGrid> &)
20
{
21
}
22
23
int main()
24
{
25
Mesh<Cartesian, RectMesh> m;
26
foo(m);
27
}