<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 --- - Clang cannot parse MSVC's <atomic> header due to C11 _Atomic keyword clash"
   href="http://llvm.org/bugs/show_bug.cgi?id=19043">19043</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang cannot parse MSVC's <atomic> header due to C11 _Atomic keyword clash
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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>Frontend
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>rnk@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>benny.kra@gmail.com, chandlerc@gmail.com, david.majnemer@gmail.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The fallacy of the implementers namespace strikes back!

MSVC has a template class named "_Atomic" in <atomic>, despite the fact that
it's a C11 keyword.   So far as we know, MSVC only aims to implement C99, so
this clash isn't a problem for them.  libc++ apparently uses _Atomic if it's
available, which means we probably can't build a compatibility mode that works
for both the MSVC STL and libc++.  We could use the -stdlib= flag to decide
whether to provide the _Atomic keyword, but either way the user has to pass
flags and that is sad.</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>