Sign in
gnu
/
gcc
/
1126a05deadda1ef363e0f78fd802c8ee0ea5b56
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
niklas03.C
blob: 29b19726a2d14ec94d2eb5e976c7f6d62419a1f8 [
file
] [
log
] [
blame
]
// Build don't link:
template
<
class
A
>
struct
X
{
A
operator
[]
(
int
);
};
template
<
class
A
>
A X
<
A
>::
operator
[]
(
int
i
)
{
return
A
();
// gets bogus error
}
X
<int>
x
;