Sign in
gnu
/
gcc
/
93ac832f1846e4867aa6537f76f510fab8e3e87d
/
.
/
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
}