[llvm-bugs] [Bug 35473] New: Cannot mangle injected class name type.

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Nov 29 17:41:40 PST 2017


https://bugs.llvm.org/show_bug.cgi?id=35473

            Bug ID: 35473
           Summary: Cannot mangle injected class name type.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Modules
          Assignee: unassignedclangbugs at nondot.org
          Reporter: warvstar at gmail.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

Created attachment 19490
  --> https://bugs.llvm.org/attachment.cgi?id=19490&action=edit
The error only happens when certain functions are called, such as PxSceneDesc
sceneDesc(m);

I get the following error when trying to compile a cpp module interface.

Physics.cppm ( has includes for the PhysX library )
Physics.cpp ( crashes here when compiling for Windows, Android compiles fine. )

The error I get is 
Cannot mangle injected class name type.
1>UNREACHABLE executed at
C:\src\llvm_package_318667\llvm\tools\clang\lib\AST\MicrosoftMangle.cpp:2469!
1>Wrote crash dump file
"C:\Users\JARSTU~1\AppData\Local\Temp\clang++.exe-51e3dd.dmp"
1>0x021758F8 (0x00000016 0x04FD3674 0x04FD3674 0x00000003)
1>0x77655422 (0x04FD3680 0x0B39C190 0x0B39C198 0x0B39C190), abort() + 0x32
bytes(s)

These are the arguments I pass to clang
clang++.exe  -Xclang --dependent-lib=msvcrtd -Xclang --dependent-lib=oldnames
-Wno-c++11-narrowing -fno-ms-compatibility -Wno-unused-command-line-argument
-Wno-pragma-pack -Wno-nonportable-include-path -fno-delayed-template-parsing
-g2 -c ..\Shared\..\Project5\Physics.cpp -o ./x64/Debug/\Physics.cpp.o
-DUNICODE -D_UNICODE -D_CONSOLE -DUSINGMODULES -DWIN32 -D_DEBUG -D_MT -D_DLL
-DVC_EXTRALEAN -DWIN32_LEAN_AND_MEAN -DGLEW_STATIC -D_HAS_EXCEPTIONS=0
-fmodules-ts -IC:\glm\glm -IE:\physx\PhysX-3.4\PhysX_3.4\Source\Common\src -m64
--target=x86_64-windows-msvc -gcodeview -std=c++17 -O0 -emit-llvm -save-temps
-fprebuilt-module-path=./x64/Debug/ -fmodule-file=./x64/Debug/Physics.pcm

I've attached the ii file, not sure how helpful that would be.

If there is any way I can be of help, let me know. Thanks
Robert

-- 
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/20171130/e2360e3c/attachment.html>


More information about the llvm-bugs mailing list