Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
refs/heads/factory-ryu-6486.B
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
nontype26.C
blob: 763d987dd399d7970fb4e91fa5b7882bb29f1c96 [
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 "cv-qualification|no matching" }
}
};
int
i
=
0
;
X
<i>
x
;
int
main
()
{
x
.
foo
();
}