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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu.org
             Status|UNCONFIRMED                 |NEW
            Summary|[15 regression] Ada         |[15 regression]  LTO
                   |bootstrap fails with LTO    |bootstrap fails with Ada
                   |errors (fe.h:361:23: error: |enabled and
                   |type of                     |-Werror=lto-type-mismatch
                   |‘sinput__c_source_buffer’   |
                   |does not match original     |
                   |declaration                 |
                   |[-Werror=lto-type-mismatch] |
                   |) since                     |
                   |r15-4141-g7e09f16ef98088    |
   Last reconfirmed|                            |2024-10-09
     Ever confirmed|0                           |1

--- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
The following declaration on the Ada side:

   type C_Array is record
      Pointer : access constant Character;
      Length  : Interfaces.C.int range 0 .. Interfaces.C.int'Last;
   end record with Convention => C_Pass_By_Copy;

does not match:

struct c_array {
  char *pointer;
  int length;
};

on the C side.

Reply via email to