<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 --- - UNREACHABLE executed at Frontend\InitHeaderSearch.cpp:311!" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23940&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=w14eql_JJOGulD_nDWAsnkCKodjdpeYynyXHPbNQECc&s=NcRElsaqU2gD3nPhPGWn0H1rejDLvwKZtZo4zanTZ6g&e=">23940</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>UNREACHABLE executed at Frontend\InitHeaderSearch.cpp:311!
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.6
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Windows XP
          </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>romaric.lecart@live.fr
          </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=14516" name="attach_14516" title="Source file and crash dump of clang.exe">attachment 14516</a> <a href="attachment.cgi?id=14516&action=edit" title="Source file and crash dump of clang.exe">[details]</a></span>
Source file and crash dump of clang.exe

I tried to use the -m16 switch to generate 16-bit code but clang crash.

Here is the output :

c:\tmp>clang -c -m16 -v main.c
clang version 3.6.1 (tags/RELEASE_361/final)
Target: i686-pc-windows-code16
Thread model: posix
 "C:\\Program Files (x86)\\LLVM\\bin\\clang.exe" -cc1 -triple
i686-pc-windows-code16 -emit-obj -mrelax-all -disable-free -main-file-name
main.c -mrelocation-model static -mthread-model posix -mdisable-fp-elim
-fmath-errno -masm-verbose -mconstructor-aliases -target-cpu pentium4 -v
-dwarf-column-info -coverage-file "c:\\tmp\\main.c" -resource-dir "C:\\Program
Files (x86)\\LLVM\\bin\\..\\lib\\clang\\3.6.1" -fdebug-compilation-dir
"c:\\tmp" -ferror-limit 19 -fmessage-length 80 -mstackrealign
-fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -o main.o -x c
main.c
clang -cc1 version 3.6.1 based upon LLVM 3.6.1 default target
i686-pc-windows-gnu
ignoring nonexistent directory "/usr/local/include"
Include management is handled in the driver.
UNREACHABLE executed at
D:\src\llvm_release_build_3.6.1-final\llvm\tools\clang\lib\Frontend\InitHeaderSearch.cpp:311!
clang.exe: error: clang frontend command failed with exit code 255 (use -v to
see invocation)

I also attached the crash dump and the source file

Note : without the switch -m16 , that works perfectly</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>