[llvm-bugs] [Bug 40712] New: terrible diagnostic for undefined @@ version
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Feb 12 17:17:57 PST 2019
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: unassignedbugs at nondot.org
Reporter: richard-llvm at metafoo.co.uk
CC: llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190213/bd951745/attachment.html>
More information about the llvm-bugs
mailing list