contrib/gcc-4.7/gcc/cp/decl.c
/* A variable or data member (whose unqualified name is IDENTIFIER)
   has been declared with the indicated TYPE.  If the TYPE is not
   acceptable, issue an error message and return a type to use for
   error-recovery purposes.  */
A variable or data member (whose unqualified name is IDENTIFIER)
has been declared with the indicated TYPE.  If the TYPE is not
acceptable, issue an error message and return a type to use for
error-recovery purposes.
A variable or data member ( whose unqualified name is IDENTIFIER ) has been declared with the indicated TYPE . If the TYPE is not acceptable issue an error message and return a type to use for error - recovery purposes .
tree
check_var_type (tree identifier, tree type)
{
  if (VOID_TYPE_P (type))
    {
      if (!identifier)
	error ("unnamed variable or field declared void");
      else if (TREE_CODE (identifier) == IDENTIFIER_NODE)
	{
	  gcc_assert (!IDENTIFIER_OPNAME_P (identifier));
	  error ("variable or field %qE declared void", identifier);
	}
      else
	error ("variable or field declared void");
      type = error_mark_node;
    }
  return type;
}
tree check_var_type ( tree identifier , tree type ) { if ( VOID_TYPE_P ( type ) ) { if ( ! identifier ) error ( " " ) ; else if ( TREE_CODE ( identifier ) == IDENTIFIER_NODE ) { gcc_assert ( ! IDENTIFIER_OPNAME_P ( identifier ) ) ; error ( " " , identifier ) ; } else error ( " " ) ; type = error_mark_node ; } return type ; }
A variable or data member (whose unqualified name is IDENTIFIER)
has been declared with the indicated TYPE.
A variable or data member ( whose unqualified name is IDENTIFIER ) has been declared with the indicated TYPE .