This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

g++'s non-conformance


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;
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]