Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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
;