Sign in
gnu
/
gcc
/
fba228e259dd5112851527f2dbb62c5601100985
/
.
/
gcc
/
testsuite
/
g++.dg
/
modules
/
access-1_c.C
blob: 27b84c2ce1caf4dadbcb98aa1377d547389d1f0c [
file
] [
log
] [
blame
]
// { dg-additional-options -fmodules-ts }
import
Bar
;
import
Foo
;
void
foo
(
Derived
*
d
)
{
d
->
m
=
1
;
// { dg-error "inaccessible within this context" }
static_cast
<
Base
*>
(
d
)->
m
=
1
;
//ok
}