KOCHERALKOTA harikrishna wrote:
When accessing the address of a field in a Packed record, it gives an compilation error(platform is solaris 2.6). The error says "cannot take address of bitfield <field name>".
Is that true in gpc that one cannot take the address of a field in a packed record ?
Of course you can't. Any such would involve pointing to a bit within an addressable unit, together with a bit count, and transforming that access via shifts and masks. Don't pack a record if you need to pass a field as a VAR.