[comp.lang.c++] cfront 2.0 bug 900209_01

rfg@paris.ics.uci.edu (Ronald Guilmette) (02/15/90)

// cfront 2.0 bug 900209_01

// Cfront does not appear to understand that a name which is a typedef
// name and which has been defined to be equivalent to void is in fact
// the same as void.  In particular, cfront gives errors on return statements
// which do not have expressions even when the return type declared for the
// containing function is a typedef name which was defined as void.

typedef void void_t;

void_t function_0 ()
{
  return;		// gets bogus error
}

int main () { return 0; }