FreeBSD/contrib/gcc/cp/parser.c
/* Issue an error message if DECL is redeclared with different
   access than its original declaration [class.access.spec/3].
   This applies to nested classes and nested class templates.
   [class.mem/1].  */
Issue an error message if DECL is redeclared with different
access than its original declaration [class.access.spec/3].
This applies to nested classes and nested class templates.
Issue an error message if DECL is redeclared with different access than its original declaration [ class . access . spec / 3 ] . This applies to nested classes and nested class templates .
static void
cp_parser_check_access_in_redeclaration (tree decl)
{
  if (!CLASS_TYPE_P (TREE_TYPE (decl)))
    return;
  if ((TREE_PRIVATE (decl)
       != (current_access_specifier == access_private_node))
      || (TREE_PROTECTED (decl)
	  != (current_access_specifier == access_protected_node)))
    error ("%qD redeclared with different access", decl);
}
static void cp_parser_check_access_in_redeclaration ( tree decl ) { if ( ! CLASS_TYPE_P ( TREE_TYPE ( decl ) ) ) return ; if ( ( TREE_PRIVATE ( decl ) != ( current_access_specifier == access_private_node ) ) || ( TREE_PROTECTED ( decl ) != ( current_access_specifier == access_protected_node ) ) ) error ( " " , decl ) ; }
Issue an error message if DECL is redeclared with different
access than its original declaration [class.access.spec/3].
Issue an error message if DECL is redeclared with different access than its original declaration [ class . access . spec / 3 ] .