Because the fixed code may output results that you don't want. int x 5;
Should it be int x = 5; or int x5; The parsing operation is very hard and takes some time. There is a method called Global correction to implement a compiler that changes the code but besides the reason above it's too costly to implement. Thanks Mohamed في الأربعاء، ١١ مايو، ٢٠٢٢ ١٢:٢٠ ص André Coelho via Gcc <gcc@gcc.gnu.org> كتب: > Hey...if the compiler can check syntax errors...why can't it fixed them? > > > thanks > > > andre coelho > >