<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - "drops <<ERROR>> qualifiers" message on obj-c++ code with ARC"
href="https://bugs.llvm.org/show_bug.cgi?id=33069">33069</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>"drops <<ERROR>> qualifiers" message on obj-c++ code with ARC
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>warp@iki.fi
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>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]; }
@end
//-----------------------------------------------
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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>