3.6.3.25 SHLS-55

Message

Error:   (SHLS-55) Argument '{argument}' in function '{function}' uses a struct with a pointer-type member, which is not supported.
/*****************************************************************
 *  This example is expected to result in
 *  - Code  : SHLS-55
 *  - Type  : Error
 *  - Cause : A struct type containing a pointer-typed field is
 *            detected in the top-level interface.
 *****************************************************************/
#include <stdint.h>

struct S {
    int32_t   *ptr;
    int64_t   v1;
    int64_t   v2;
};

int DUT(S s) {
    #pragma HLS function top
    return (s.v1 == s.v2);
}
Attention: Known Bug:

Due to a known bug, code that triggers this message will cause SmartHLS 2025.2 to terminate unexpectedly. This issue will be resolved in the next release.

Related to: Memory Interface for Pointer Argument/Global Variable