[LLVMbugs] [Bug 18179] New: Using clang-cl and including typeinfo, compiler error occurs

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Dec 8 13:40:18 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=18179

            Bug ID: 18179
           Summary: Using clang-cl and including typeinfo, compiler error
                    occurs
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: eldlistmailingz at tropicsoft.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131208/1aca53bd/attachment.html>


More information about the llvm-bugs mailing list