<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - Compilation fails for any file that includes stdlib.h when -fms-extensions is on"
   href="http://llvm.org/bugs/show_bug.cgi?id=17426">17426</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Compilation fails for any file that includes stdlib.h when -fms-extensions is on
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>frank@meerkoetter.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=11310" name="attach_11310" title="the offending stdlib.h">attachment 11310</a> <a href="attachment.cgi?id=11310&action=edit" title="the offending stdlib.h">[details]</a></span>
the offending stdlib.h

Compiling the following test case fails:

#include <stdlib.h>

int main()
{
        return 0;
}

with

/usr/bin/clang -fms-extensions  -o test__ test.c 
In file included from test.c:1:
/usr/include/stdlib.h:69:23: error: expected member name or ';' after
declaration specifiers
    union wait *__uptr;
    ~~~~~             ^
1 error generated.


Its working when i remove the microsoft extensions from the commandline.
Unfortunately i want to use clang with a project that is making use of these
extensions so its not a workaround for me.

I am using clang from the nightlies. I am using a Kubuntu13.04.</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>