Hello Eckard,
I have code like this which breaks te parser
int test(void){ #if ( TEST == 1 ) return 1; #elif ( TEST == 2 ) return 2; #else #error unexpected #endif }
I'm not sure if this is C99 conform but the ARM compiler is handling it. BR Wasili
reproduser attached
Hello Wasili.
I have tested your examples with the newest Moritz patch published on 2020-12-23 together with the patch I have provided to solve your issue struct initializer with condition
The Nassi Shneiderman diagram for it looks like this:
(Note: Here in the Forum the HTML result looks a little bit different. But you see that all your code-parts are present )
I wish you a happy new year.
Stay healthy, Eckard.
Log in to post a comment.
reproduser attached
Hello Wasili.
I have tested your examples with the newest Moritz patch published on 2020-12-23 together with the patch I have provided to solve your issue struct initializer with condition
The Nassi Shneiderman diagram for it looks like this:
test ( )
(Note: Here in the Forum the HTML result looks a little bit different. But you see that all your code-parts are present )
I wish you a happy new year.
Stay healthy,
Eckard.
Last edit: Eckard Klotz 2020-12-28