> > A is not needed to compile TEST. Apparently most compilers want it to
> > be accessible, though. The question is, does the standard require it to
> > be accessible? My guess is that it probably does. There are other
> > examples where the standard requires stuff to be accessible even though
> > we (or a smart compiler) know it is not needed.
>
> This is *FAR* beyond the level of anything the standard discusses.
TEST uses B, B uses A. Nothing from A propagates through to TEST. Your
answer sounds like it is acceptable for a compiler to require A (in
whatever form) to be accessible. OK. This answers Van's question.
Presumably, a compiler COULD be smart enough not to want to see A when
TEST is compiled, but this can't be expected.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|