-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Labels
Description
Recursive structs cannot be parsed correctly, e.g., try this:
extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ;
typedef struct Node {
int data;
struct Node* next;
} Node;
int main() {
Node* newNode = (Node*) malloc(sizeof(Node));
newNode->next = NULL;
return 0;
}It is because merge mergeCTypes does not correctly finds out what is the mainType at the referenced location. As a result, an exception occurs in NamedType::patch. mergeCTypes or NamedType::patch should be fixed.
Reactions are currently unavailable