Sign in
gnu
/
gcc
/
refs/heads/devel/c++-contracts
/
.
/
gcc
/
testsuite
/
g++.dg
/
other
/
friend16.C
blob: 8c62ef69ec1e6cd37c1fefb9d928d3445f25a3ac [
file
] [
log
] [
blame
]
// PR c++/85558
template
<
typename
T
>
struct
triggerBug
{
friend
void
doInitUser
(
bool
=
triggerBug
::
doInit
);
// { dg-error "definition" }
static
bool
doInit
;
};
template
<
class
T
>
bool
triggerBug
<
T
>::
doInit
=
true
;
triggerBug
<int>
bug
;