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
/
memclass6.C
blob
65de1d1bd995725f411f0a3e9d77a778e82fa12c
1
// Compiler: egcs-2.91.12 980302
2
// Error: compiler error in ctor of 'foo::bar<T>::bar(T const &)'
3
4
struct foo
5
{
6
template <typename T>
7
struct bar
8
{
9
bar(T const &t) : tt(t) {}
10
T tt;
11
};
12
};
13
14
int main()
15
{
16
foo::bar<int> fb(3);
17
return 0;
18
}