[LLVMbugs] [Bug 7940] New: Using -std=c++98 with Clang causes mangled identifiers in resolution errors
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Aug 19 12:42:38 PDT 2010
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: unassignedbugs at nondot.org
ReportedBy: llvmbugs at contacts.eelis.net
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list