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: unassignedclangb...@nondot.org
          Reporter: developm...@jonas-toth.eu
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to