c2v icon indicating copy to clipboard operation
c2v copied to clipboard

Failure to translate structs after typedefs

Open infdivzero opened this issue 1 year ago • 0 comments

This C code

typedef struct AAA AAA;

struct AAA {
    int x;
};

should produce

@[translated]
// module main etc

struct AAA {
    x int
}

but only the @[translated] attribute and module statement are generated. This will translate as expected:

typedef struct AAA {
    int x;
} AAA;

infdivzero avatar May 10 '24 23:05 infdivzero