[Bug bootstrap/102828] New: [12 Regression] ODR violation in gimple-predicate-analysis.h since g:94c12ffac234

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Oct 19 07:24:02 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102828

            Bug ID: 102828
           Summary: [12 Regression] ODR violation in
                    gimple-predicate-analysis.h since g:94c12ffac234
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: msebor at gcc dot gnu.org
  Target Milestone: ---

I noticed that during bootstrap and I think we should not introduce new ODR
violations, it may break LTO bootstrap.

[ 1689s] ../../gcc/ipa-predicate.h:114:7: warning: type 'struct predicate'
violates the C++ One Definition Rule [-Wodr]
[ 1689s]   114 | class predicate
[ 1689s]       |       ^
[ 1689s] ../../gcc/gimple-predicate-analysis.h:48: note: a different type is
defined in another translation unit
[ 1689s]    48 | class predicate


More information about the Gcc-bugs mailing list