Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
crash41.C
blob: 452ba91dc84b4fa1061d831be99414dd20b66f15 [
file
] [
log
] [
blame
]
// { dg-do compile }
// Origin: Mark Mitchell <mark@codesourcery.com>
template
<int>
struct
S1
{};
struct
S2
{
int
i
;
};
template
<
class
T
>
void
f
(
S2 s2
)
{
S1
<
s2
.
i
>
s1
;
// { dg-error "" }
}
template
void
f
<int>
(
S2
);