This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
g++'s non-conformance
- To: gcc at gcc dot gnu dot org
- Subject: g++'s non-conformance
- From: Anjul Srivastava <anjul dot srivastava at sanchez dot com>
- Date: Thu, 9 Dec 1999 16:21:38 -0500
Page: 12, ISO/IEC 14882:1998(E)
Table 2 -- alternative tokens
alternative primary
and &&
------
g++ does not accept the following program:
main()
{
return 1 and 2;
}
=====================
Page: 14, ISO/IEC 14882:1998(E)
2.11 Para 2
"Furthermore, the alternative representations shown in Table 4 for certain
operators and punctuators are reserved and shall not be used otherwise:"
------
g++ *does* accept the following program:
main()
{
int and;
return and=5;
}