Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
nontype26.C
blob: 588ce1cc23a79c025a4a006776de92546c3fe2ad [
file
] [
log
] [
blame
]
// PR c++/31671
template
<
int
&
i
>
void
doit
()
{
i
=
0
;
}
template
<
const
int
&
i
>
class
X
{
public
:
void
foo
()
{
doit
<i>
();
// { dg-error "qualifi|template arg|no matching" }
}
};
int
i
=
0
;
X
<i>
x
;
int
main
()
{
x
.
foo
();
}