MISRA Discussion Forums
8.10.3 Is ~ operator composite? - Printable Version

+- MISRA Discussion Forums (https://forum.misra.org.uk)
+-- Forum: MISRA C (https://forum.misra.org.uk/forumdisplay.php?fid=4)
+--- Forum: MISRA C:2012 and MISRA C:2023 guidelines (https://forum.misra.org.uk/forumdisplay.php?fid=21)
+---- Forum: 8.10 The essential type model (https://forum.misra.org.uk/forumdisplay.php?fid=165)
+---- Thread: 8.10.3 Is ~ operator composite? (/showthread.php?tid=1185)



8.10.3 Is ~ operator composite? - miyanom - 04-06-2015

In 8.10.3, ~ operator is not defined as a composite operator.
Is it necessary to treat ~ operator as composite?

If ~ operator is not composite, then is the following code compliant with Rule 10.6?
u16a = ~u8a;


Re: 8.10.3 Is ~ operator composite? - misra-c - 25-06-2015

The MISRA C:2012 document does not list the ~operator as a composite operator, and therefore it is not composite. However, this is currently under review by the MISRA-C working group and may change in the future.