<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 --- - Using clang-cl and including typeinfo, compiler error occurs"
href="http://llvm.org/bugs/show_bug.cgi?id=18179">18179</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Using clang-cl and including typeinfo, compiler error occurs
</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>C++
</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>dgregor@apple.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Attempting to compile source with clang-cl which includes typeinfo a compiler
error occurs:
"aux_\largest_int.cpp"
-Fo"..\..\..\bin.v2\libs\mpl\test\largest_int.test\clang-vc11-win-3.4\debug\largest_int.obj"
-TP /Od /Ob0 /W3 /GR /MDd /Zc:forScope /Zc:wchar_t -fmsc-version=1700
/wd4675 /EHs /D_HAS_EXCEPTIONS=0 /D_STATIC_CPPLIB /GR- -c
-DBOOST_ALL_NO_LIB=1
"-I..\..\.."
compile-c-c++
..\..\..\bin.v2\libs\mpl\test\largest_int.test\clang-vc11-win-3.4\debug\largest_int.obj
call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat"
x86 > nul
"C:\Programming\VersionControl\bclang\bin\Release\clang-cl.exe"
@"..\..\..\bin.v2\libs\mpl\test\largest_int.test\clang-vc11-win-3.4\debug\largest_int.obj.rsp"
clang-cl.exe: warning: argument unused during compilation: '/EHs'
In file included from aux_\largest_int.cpp:14:
In file included from ..\..\..\boost/mpl/aux_/largest_int.hpp:17:
In file included from ..\..\..\boost/mpl/if.hpp:17:
In file included from ..\..\..\boost/mpl/aux_/value_wknd.hpp:17:
In file included from ..\..\..\boost/mpl/aux_/static_cast.hpp:17:
In file included from ..\..\..\boost/mpl/aux_/config/workaround.hpp:17:
In file included from ..\..\..\boost/detail/workaround.hpp:41:
In file included from ..\..\..\boost/config.hpp:44:
In file included from ..\..\..\boost/config/stdlib/dinkumware.hpp:89:
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\typeinfo(152,10)
: error: expected class name
: public exception
^
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\typeinfo(156,4)
: error: member initializer 'exception' does not name a non-static data member
or base class
: exception(_Message)
^~~~~~~~~~~~~~~~~~~
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\typeinfo(173,10)
: error: expected class name
: public exception
^
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\typeinfo(177,4)
: error: member initializer 'exception' does not name a non-static data member
or base class
: exception(_Message)
I am testing Boost mpl using clang-cl as the compiler and using Boost Build.</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>