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

            Bug ID: 124282
           Summary: [15/16 regression] bogus visibility error for
                    expression part of various aggregate expressions
           Product: gcc
           Version: 15.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: liam at liampwll dot com
                CC: dkm at gcc dot gnu.org
  Target Milestone: ---

Created attachment 63792
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63792&action=edit
Likely incomplete fix

This is an issue I've run in to a few times but I never get around to
submitting a report for it until I hit it again today.

Looking at the fix for PR ada/124201 made it obvious what the issue is and how
to fix it: Expression parts of aggregates in generics need to be directly
analysed in the same way that key expressions are. I suspect my fix here is
incomplete since PR ada/124201 also required a change to expansion, but it at
least shows where the issue is.

The regression here is in generic_inst19.adb.

Reply via email to