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
/
memtemp42.C
blob
3c11dd4229c560f8214d760c4236a74950c2513f
1
// Build don't run:
2
// GROUPS passed templates membertemplates
3
template<class T, int N>
4
class Foo {
5
6
public:
7
template<int N2>
8
Foo<T,N> operator=(const Foo<T,N2>& z)
9
{
10
return Foo<T,N>();
11
}
12
};
13
14
int main()
15
{
16
Foo<double,4> x;
17
Foo<double,7> y;
18
x = y;
19
20
return 0;
21
}
22