<html>
    <head>
      <base href="https://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 --- - bootstrap on windows is broken"
   href="https://llvm.org/bugs/show_bug.cgi?id=24651">24651</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>bootstrap on windows is broken
          </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>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>C++
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>rafael.espindola@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvm-bugs@lists.llvm.org, rnk@google.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=14803" name="attach_14803" title="testcase">attachment 14803</a> <a href="attachment.cgi?id=14803&action=edit" title="testcase">[details]</a></span>
testcase

Building the attached test file with

$ clang -cc1 -triple x86_64-pc-windows-msvc18.0.0 -S -fms-compatibility
-std=c++11 -w -o foo.o SemaOpenMP.ii

produces the errors:


In file included from
C:\\Users\\espindola\\llvm\\llvm\\tools\\clang\\lib\\Sema\\SemaOpenMP.cpp:15:
In file included from
C:\\Users\\espindola\\llvm\\llvm\\tools\\clang\\lib\\Sema/TreeTransform.h:30:
In file included from
C:\\Users\\espindola\\llvm\\llvm\\tools\\clang\\include\clang/Sema/Lookup.h:19:
C:\\Users\\espindola\\llvm\\llvm\\tools\\clang\\include\clang/Sema/Sema.h:1087:41:
error: definition with same mangled name as another definition
    friend const SemaDiagnosticBuilder &operator<<(
                                        ^
C:\\Users\\espindola\\llvm\\llvm\\tools\\clang\\include\clang/Sema/Sema.h:1087:41:
note: previous definition is here
C:\\Users\\espindola\\llvm\\llvm\\tools\\clang\\include\clang/Sema/Sema.h:1087:41:
error: definition with same mangled name as another definition
    friend const SemaDiagnosticBuilder &operator<<(
                                        ^
C:\\Users\\espindola\\llvm\\llvm\\tools\\clang\\include\clang/Sema/Sema.h:1087:41:
note: previous definition is here
2 errors generated.</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>