c2compiler icon indicating copy to clipboard operation
c2compiler copied to clipboard

Invalid expression assignment is not detected by analyser

Open lerno opened this issue 7 years ago • 2 comments

This code is accepted by the analyser but is not valid C.

a = argc + 1 = 1;

lerno avatar Dec 02 '18 23:12 lerno

Indeed. We have to extend the analyses to check for these situations. What these 'situations' are exactly I'm not sure about.

bvdberg avatar Dec 07 '18 09:12 bvdberg

I have a pretty good idea, but it touches code that is affected by the open pull requests, so any fixes need to wait.

lerno avatar Dec 07 '18 09:12 lerno