rfg@paris.ics.uci.edu (Ronald Guilmette) (02/16/90)
// cfront 2.0 bug 900215_01
// Cfront fails to properly compute the "common type" of a conditional
// expression as called for in section 5.16 of the 2.0 Reference Manual
// when the computation of the common type involves the implicit addition
// (or removal) of qualifiers from a pointer type.
// It thus also fails to catch the error in the following code.
// g++ (1.36.1) issues warnings for cases like the following. (Of course
// these should really be errors rather than warnings.)
char *cp;
const char *ccp;
void function ()
{
cp = (0) ? cp : ccp; /* ERROR - missed by cfront 2.0 */
}