https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68944

            Bug ID: 68944
           Summary: Testsuite failures due to objc_object::isa deprecation
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: objc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-apple-darwin15.2.0
            Target: x86_64-apple-darwin15.2.0
             Build: x86_64-apple-darwin15.2.0

Several Objective-C and Objective-C++ testcases FAIL like this:

FAIL: obj-c++.dg/isa-field-1.mm -fnext-runtime (test for excess errors)

Excess errors:
/vol/gcc/src/hg/trunk/local/gcc/testsuite/obj-c++.dg/isa-field-1.mm:19:25:
warning: 'objc_object::isa' is deprecated [-Wdeprecated-declarations]

  <objc/objc.h> has

/// Represents an instance of a class.
struct objc_object {
    Class isa  OBJC_ISA_AVAILABILITY;
};

  <objc/objc-api.h> has

/* OBJC_ISA_AVAILABILITY: `isa` will be deprecated or unavailable 
 * in the future */
#if !defined(OBJC_ISA_AVAILABILITY)
#   if __OBJC2__
#       define OBJC_ISA_AVAILABILITY  __attribute__((deprecated))
#   else
#       define OBJC_ISA_AVAILABILITY  /* still available */
#   endif
#endif

  Rainer

Reply via email to