<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 --- - Failure compiling Boost type_traits with Boost build"
   href="http://llvm.org/bugs/show_bug.cgi?id=17773">17773</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Failure compiling Boost type_traits with Boost build
          </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>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>eldlistmailingz@tropicsoft.com
          </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>If I compile Boost type_traits with the latest clang for Windows using the VC++
RTL and headers I receive the error message:

--------------------------------------------------------------------------------

add_const_test.cpp"
-Fo"..\..\..\bin.v2\libs\type_traits\test\add_const_test.test\clang-vc10-win-3.4\debug\add_const_test.obj"
   -TP /Od /Ob0 /W4 /GR /MDd  /Zc:forScope /Zc:wchar_t -fmsc-version=1600
/wd4675 /EHs -c
-DBOOST_ALL_NO_LIB=1
"-I..\..\.."
compile-c-c++
..\..\..\bin.v2\libs\type_traits\test\add_const_test.test\clang-vc10-win-3.4\debug\add_const_test.obj

    call "C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 >
nul

"C:\Programming\VersionControl\clang_build\bin\Release\clang-cl.exe"
@"..\..\..\bin.v2\libs\type_traits\test\add_const_test.test\clang-vc10-win-3.4\debug\add_const_test.obj.rsp"

clang-cl.exe: warning: argument unused during compilation: '/EHs'
error: cannot mangle RTTI descriptors for type 'codecvt' yet
error: cannot mangle the name of type 'codecvt' into RTTI descriptors yet
error: cannot mangle RTTI descriptors for type 'codecvt_base' yet
error: cannot mangle the name of type 'codecvt_base' into RTTI descriptors yet
error: cannot mangle RTTI descriptors for type 'facet' yet
error: cannot mangle the name of type 'facet' into RTTI descriptors yet
6 errors generated."

--------------------------------------------------------------------------------

If I add '-D_HAS_EXCEPTIONS=0 /GR-' as recommended I then get, when including
'typeinfo':

--------------------------------------------------------------------------------

""add_const_test.cpp"
-Fo"..\..\..\bin.v2\libs\type_traits\test\add_const_test.test\clang-vc10-win-3.4\debug\add_const_test.obj"
   -TP /Od /Ob0 /W4 /GR /MDd  /Zc:forScope /Zc:wchar_t -fmsc-version=1600
/wd4675 /EHs -D_HAS_EXCEPTIONS=0 /EH- /GR- -c
-DBOOST_ALL_NO_LIB=1
"-I..\..\.."
compile-c-c++
..\..\..\bin.v2\libs\type_traits\test\add_const_test.test\clang-vc10-win-3.4\debug\add_const_test.obj

    call "C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 >
nul

"C:\Programming\VersionControl\clang_build\bin\Release\clang-cl.exe"
@"..\..\..\bin.v2\libs\type_traits\test\add_const_test.test\clang-vc10-win-3.4\debug\add_const_test.obj.rsp"

clang-cl.exe: warning: argument unused during compilation: '/EHs'
clang-cl.exe: warning: argument unused during compilation: '/EH-'
In file included from add_const_test.cpp:7:
In file included from ./test.hpp:10:
In file included from ..\..\..\boost/config.hpp:44:
In file included from ..\..\..\boost/config/stdlib/dinkumware.hpp:89:
c:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\typeinfo(156,10) : 
error: unknown class name 'exception'; did you mean '_exception'?
        : public exception" 

--------------------------------------------------------------------------------

In effect trying to turn off RTTI and exceptions gives me an error just trying
to include typeinfo. So clang needs to be able to compile using VC++ RTL with
typeinfo support and exception support else it is unusable in Boost.</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>