[llvm-bugs] [Bug 37337] New: Many new warnings with gcc-8
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri May 4 03:20:16 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37337
Bug ID: 37337
Summary: Many new warnings with gcc-8
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: development at jonas-toth.eu
CC: llvm-bugs at lists.llvm.org
Created attachment 20264
--> https://bugs.llvm.org/attachment.cgi?id=20264&action=edit
Sorted, Unique Warnings from gcc-8
Using the new gcc-8 to build LLVM and clang results in many new warnings, that
are most related to `-Wclass-memaccess`.
Example:
```
llvm/include/llvm/ADT/SmallVector.h:312:11: warning: ‘void* memcpy(void*, const
void*, size_t)’ writing to an object of type ‘struct std::pair<void*, long
unsigned int>’ with no trivial copy-assignment; use copy-assignment or
copy-initialization instead [-Wclass-memaccess]
memcpy(this->end(), &Elt, sizeof(T));
~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
All unique and sorted warnings are in the attachment.
--
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/20180504/d722bba1/attachment-0001.html>
More information about the llvm-bugs
mailing list