[llvm-bugs] [Bug 39223] New: invalid argument type 'int *' to unary expression: provide fix-it to dereference it
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Oct 9 04:53:52 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=39223
Bug ID: 39223
Summary: invalid argument type 'int *' to unary expression:
provide fix-it to dereference it
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: lebedev.ri at gmail.com
CC: llvm-bugs at lists.llvm.org
int test(int *x) {
return -x;
}
https://godbolt.org/z/BnCEY2
Expected:
int test(int *x) {
return -(*x);
}
Would it make sense to provide such a fix-it?
--
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/20181009/37283153/attachment.html>
More information about the llvm-bugs
mailing list