http://llvm.org/bugs/show_bug.cgi?id=7940
Summary: Using -std=c++98 with Clang causes mangled identifiers
in resolution errors
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
If I do:
echo "void f(); int main(){ f(); }" |
clang -cc1 -emit-llvm-bc -std=c++98 | lli
I get an error in which the name of the function is mangled:
LLVM ERROR: Program used external function '_Z1fv' which could not be
resolved!
When I omit the -std=c++98, I get the nicer error:
LLVM ERROR: Program used external function 'f' which could not be resolved!
It seems a bit weird (and undesirable) for -std=c++98 to have this adverse
effect.
I'm using Clang r111113.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs