https://bugs.llvm.org/show_bug.cgi?id=52000
Bug ID: 52000
Summary: [MSFT C++ ABI] Incomplete/incorrect name mangling for
function with auto return type
Product: clang
Version: 12.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
[MSFT ABI] clang-cl produces symbols with incorrect mangling when given a
function with automatic return type deduction.
Observe:
>type test.cpp
__declspec(dllexport) auto get_int() {
return int(42);
}
>cl | findstr Version
Microsoft (R) C/C++ Optimizing Compiler Version 19.27.29111 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
>clang-cl --version | findstr version
clang version 12.0.1
---------------------------------------------------
>cl /nologo /LD test.cpp
test.cpp
Creating library test.lib and object test.exp
>dumpbin /nologo /exports test.dll | findstr get_int
1 0 00001000 ?get_int@@YAHXZ
---------------------------------------------------
>clang-cl /nologo /LD test.cpp
Creating library test.lib and object test.exp
>dumpbin /nologo /exports test.dll | findstr get_int
1 0 00001000 ?get_int@@YA?A?<auto>@@XZ
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs