This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/79003] New: [7 Regression] r238991 breaks ODR
- From: "trippels at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 05 Jan 2017 13:05:40 +0000
- Subject: [Bug rtl-optimization/79003] New: [7 Regression] r238991 breaks ODR
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79003
Bug ID: 79003
Summary: [7 Regression] r238991 breaks ODR
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: trippels at gcc dot gnu.org
CC: vmakarov at gcc dot gnu.org
Target Milestone: ---
r238991 breaks the ODR (pointed out by LTO bootstrap):
../../gcc/gcc/loop-invariant.c:100:8: warning: type ‘struct invariant’ violates
the C++ One Definition Rule [-Wodr]
struct invariant
^
../../gcc/gcc/lra-constraints.c:4752:8: note: a different type is defined in
another translation unit
struct invariant
^
../../gcc/gcc/loop-invariant.c:103:12: note: the first difference of
corresponding definitions is field ‘invno’
unsigned invno;
^
../../gcc/gcc/lra-constraints.c:4755:7: note: a field with different name is
defined in another translation unit
int num;
^