[Bug ada/124265] Dimension_System broken for subtypes and components with ranges

liam at liampwll dot com gcc-bugzilla@gcc.gnu.org
Wed Mar 11 07:42:45 GMT 2026


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

--- Comment #9 from Liam Powell <liam at liampwll dot com> ---
Created attachment 63893
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63893&action=edit
fixed patch

Here is the actual code that uses this, the relevant section should be
highlighted:
https://github.com/Prunt3D/prunt/blob/cd8df1718ad263b6e5543d4cce0fec522bfcdaa2/src/prunt-default_modules-tmc2240_drivers.ads#L247-L290

If this does ever get fixed, I found that N_Expression_With_Actions needs to be
added to OK_For_Dimension, but I haven't tracked down exactly what expression
it comes from in our codebase. The attached patch has this included.


More information about the Gcc-bugs mailing list