sdcc icon indicating copy to clipboard operation
sdcc copied to clipboard

Possibly invalid code is accepted

Open pmor13 opened this issue 9 months ago • 0 comments

This code:

struct s {
    int x; 
    int y[sizeof((struct s*)0)->x]; 
};

is accepted, which is questionable, because it is (seems to be) invalid code.

Originates from https://stackoverflow.com/q/79550524/1778275.

pmor13 avatar Apr 03 '25 12:04 pmor13