[Bug rtl-optimization/79003] New: [7 Regression] r238991 breaks ODR
trippels at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 5 13:05:00 GMT 2017
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;
^
More information about the Gcc-bugs
mailing list