https://bugs.llvm.org/show_bug.cgi?id=40712
Bug ID: 40712
Summary: terrible diagnostic for undefined @@ version
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Common Code Generator Code
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Testcase:
asm(".symver pub_foo, foo@@FOO_1.2");
This results in a crash:
fatal error: error in backend: A @@ version cannot be undefined
clang-9: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 9.0.0 (trunk 353556) (llvm/trunk 353564)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
clang-9: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.llvm.org/ and include the crash backtrace, preprocessed source,
and associated run script.
clang-9: note: diagnostic msg: Error generating preprocessed source(s) -
ignoring input from stdin.
clang-9: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs.
This is a terrible response to this input:
We shouldn't report this as a crash, just as a regular error.
The diagnostic should say which symbol was undefined.
--
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