View | Details | Return to bug 59766
Collapse All | Expand All

(-)decl.c (-1 / +1 lines)
Lines 10432-10438 Link Here
10432
      }
10432
      }
10433
    else if (decl_context == FIELD)
10433
    else if (decl_context == FIELD)
10434
      {
10434
      {
10435
	if (!staticp && TREE_CODE (type) != METHOD_TYPE
10435
	if (!staticp && !friendp && TREE_CODE (type) != METHOD_TYPE
10436
	    && type_uses_auto (type))
10436
	    && type_uses_auto (type))
10437
	  {
10437
	  {
10438
	    error ("non-static data member declared %<auto%>");
10438
	    error ("non-static data member declared %<auto%>");

Return to bug 59766