Martin Burnicki - 2017-05-17

Hi all,

I'm looking for a way to reference fields in cascaded C structures. for example:

enum
{
  PEER_ENABLED,
  PEER_DISABLED
};

typedef struct
{
  int status;
  int flags;
} MY_PEER;

typedef struct
{
  MY_PEER peer;

  int more_info;  ///< Only valid if ::MY_STATUS::peer::status is ::PEER_ENABLED

} MY_STATUS;

returns an error:

explicit link request to 'MY_STATUS::peer::status' could not be resolved

Any hints how this could be solved?

Thanks,
Martin