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

            Bug ID: 89075
           Summary: error: type variant has different TREE_TYPE
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

For this C code:

struct {
} typedef *a;
typedef a b(const a);
typedef c(const a);
struct {
  b *d;
  c *e
} f;

compiled with recent gcc trunk and flag -flto, does this:

bug500.c:8:1: error: type variant has different TREE_TYPE
 <function_type 0x7f4b2710e2a0
    type <pointer_type 0x7f4b2710ec78 a
        type <record_type 0x7f4b2710e9d8 type_0 VOID
            align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7
f4b270eaa80 context <translation_unit_decl 0x7f4b26fcfbb8 bug500.c>
            pointer_to_this <pointer_type 0x7f4b2710ea80>>
        unsigned DI
        size <integer_cst 0x7f4b26fc2ca8 constant 64>
        unit-size <integer_cst 0x7f4b26fc2cc0 constant 8>
        align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7f4b
2710e000>

Reply via email to