-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to demangle some symbols #17
Comments
From the upstream issue, the correct demangling is
apparently. |
How did you end up with these symbols? Is that from building a binary with cl.exe, or with clang-cl.exe? I'm wondering if clang-cl also mangles it incorrectly, in addition to not demangling it right. Do you happen to have a reduced source file that produces these symbols? |
Edit: This is incorrect; godbolt just shows it incorrectly in the |
Symbols are generated from actual project code, currently just have no network access from work machine, let me try reduce source files once available. |
My original purpose is to detect conflict symbols, i.e. same name symbols, but in different |
Hi, @nico I upload one simple reproduce project a.zip. #pragma once
#include <vector>
struct Point
{
float x;
float y;
Point() {
x = 0;
y = 0;
}
Point(int _x, int _y): x(_x), y(_y){}
};
float random_sum(int n); #include "point.h"
#include <stdlib.h>
float random_sum(int n)
{
std::vector<Point> res;
for (int i = 0; i < n; i++)
{
float x = rand()/RAND_MAX;
float y = rand()/RAND_MAX;
res.emplace_back(Point(x, y));
}
float sum = 0;
for (int i = 0; i < n; i++)
{
sum += res[i].x + res[i].y;
}
return sum / n;
} And the symbol |
Failed to demangle some symbols, such as
??$emplace_back@AEBM@?$vector@MV?$allocator@M@std@@@std@@QEAA?A_TAEBM@Z
.Tried with latest LLVM commit but not working.
Reported in llvm/llvm-project#63342 now.
The text was updated successfully, but these errors were encountered: