[llvm-bugs] [Bug 33069] New: "drops <<ERROR>> qualifiers" message on obj-c++ code with ARC

via llvm-bugs llvm-bugs at lists.llvm.org
Wed May 17 05:58:06 PDT 2017


            Bug ID: 33069
           Summary: "drops <<ERROR>> qualifiers" message on obj-c++ code
                    with ARC
           Product: clang
           Version: unspecified
          Hardware: Macintosh
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: warp at iki.fi
                CC: llvm-bugs at lists.llvm.org

This is more a cosmetic flaw in a compiler error message than anything else,
but anyways. Consider the following minimal piece of Objective-C++ code:

#import "Foundation/Foundation.h"

@interface Test:NSObject @end

@implementation Test
- (void) foo: (NSString*&) s {}
- (void) bar { NSString* s; [self foo:s]; }

When ARC is enabled (-fobjc-arc), clang issues the following error:

test.mm:8:39: error: binding value of type 'NSString *__strong' to reference to
type 'NSString *__autoreleasing' drops <<ERROR>> qualifiers

I believe that "<<ERROR>>" to be some kind of indication of a bug somewhere in
the compile-time error reporting code.

clang reports the following version information:

Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.3.0
Thread model: posix

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170517/595fd120/attachment.html>

More information about the llvm-bugs mailing list