<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:bhamiltoncx@gmail.com" title="Ben Hamilton <bhamiltoncx@gmail.com>"> <span class="fn">Ben Hamilton</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - __attribute__((format_arg(X)) is broken with ObjC message sends"
   href="https://bugs.llvm.org/show_bug.cgi?id=36599">bug 36599</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>INVALID
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>ASSIGNED
           </td>
           <td>RESOLVED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - __attribute__((format_arg(X)) is broken with ObjC message sends"
   href="https://bugs.llvm.org/show_bug.cgi?id=36599#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - __attribute__((format_arg(X)) is broken with ObjC message sends"
   href="https://bugs.llvm.org/show_bug.cgi?id=36599">bug 36599</a>
              from <span class="vcard"><a class="email" href="mailto:bhamiltoncx@gmail.com" title="Ben Hamilton <bhamiltoncx@gmail.com>"> <span class="fn">Ben Hamilton</span></a>
</span></b>
        <pre>This is actually an off-by-one error in the Apple SDK:

@interface NSBundle
- (NSString *)localizedStringForKey:(NSString *)key value:(nullable NSString
*)value table:(nullable NSString *)tableName __attribute__((format_arg(1)));
@end

should be:

@interface NSBundle
- (NSString *)localizedStringForKey:(NSString *)key value:(nullable NSString
*)value table:(nullable NSString *)tableName __attribute__((format_arg(2)));
@end

since it's the 2nd argument (value) which potentially takes a format string,
and format_arg(X) is 1-based, not 0-based.</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>