Rule: One type, two definitions¶
Canonical rule slug: odr-type-variant. ← back to all rules
One type name has two conflicting definitions in the same program, so which layout a translation unit sees depends on link order.
Canonical demonstration¶
No single-library case demonstrates this rule alone yet — referenced only by the scenario(s) below.
Used by scenarios¶
- case149_xcheck_odr_variant — ODR Type Variant (Cross-Source, L4 Layout ↔ Layout)