tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] TCC ignores a syntax error


From: Anton Shepelev
Subject: [Tinycc-devel] TCC ignores a syntax error
Date: Sun, 18 Nov 2018 23:20:22 +0300

Hello, all

TCC compiles the following program:

int main( int argc, char** argv )
{  int   i, *iP;
   void* vP;
   i  = 55;
   iP = &i;
   vP = &(void*)iP; /* syntax error */
   return 0;
}

whereas it should fail with a syntax error, because
the & operator requires an lvalue.

P.S.: Sorry for sending this to the owner the first
      time.

-- 
()  ascii ribbon campaign -- against html e-mail
/\  http://preview.tinyurl.com/qcy6mjc [archived]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]