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
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p3524a.C
blob
1b0afede5f1e046718f8e418bf0df49ef9b4af38
1
// { dg-do assemble }
2
// Make sure we can initialize a reference to a templated type, that
3
// requires a conversion from a derived type to a base type.
4
5
// prms-id: 3524
6
7
struct cc2Vector
8
{};
9
10
template <class T>
11
struct ccPair
12
{
13
ccPair (const cc2Vector&);
14
};
15
16
struct ccLine : cc2Vector
17
{
18
double distToPoint (const ccPair <float> &);
19
};
20
21
void foo ()
22
{
23
ccLine l2;
24
l2.distToPoint (l2);
25
}