[Bug ada/99020] ICE in record containing discriminated accesses

2021-03-04 Thread simon at pushface dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99020

--- Comment #5 from simon at pushface dot org ---
(In reply to Eric Botcazou from comment #4)
> This should compile now.

It does, indeed. Thanks!

[Bug ada/99020] ICE in record containing discriminated accesses

2021-03-01 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99020

Eric Botcazou  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED

--- Comment #4 from Eric Botcazou  ---
This should compile now.

[Bug ada/99020] ICE in record containing discriminated accesses

2021-03-01 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99020

--- Comment #3 from CVS Commits  ---
The master branch has been updated by Eric Botcazou :

https://gcc.gnu.org/g:3104dbdcf4a2b7766b5570a0fa2d30157082f04e

commit r11-7444-g3104dbdcf4a2b7766b5570a0fa2d30157082f04e
Author: Eric Botcazou 
Date:   Tue Mar 2 01:04:10 2021 +0100

Do not call Set_Cloned_Subtype on private type

Build_Discriminated_Subtype may be invoked on a E_Record_Type_With_Private,
in which case it builds a E_Record_Subtype_With_Private which does not have
the Cloned_Subtype field.

gcc/ada/
PR ada/99020
* sem_ch3.adb (Build_Discriminated_Subtype): Set the Cloned_Subtype
only if the type is not private.

[Bug ada/99020] ICE in record containing discriminated accesses

2021-03-01 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99020

Eric Botcazou  changed:

   What|Removed |Added

   Assignee|unassigned at gcc dot gnu.org  |ebotcazou at gcc dot 
gnu.org
 Status|NEW |ASSIGNED
 CC|ebotcazou at gcc dot gnu.org   |

--- Comment #2 from Eric Botcazou  ---
Fixing.

[Bug ada/99020] ICE in record containing discriminated accesses

2021-03-01 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99020

Eric Botcazou  changed:

   What|Removed |Added

 Ever confirmed|0   |1
   Last reconfirmed||2021-03-01
 CC||ebotcazou at gcc dot gnu.org
 Status|UNCONFIRMED |NEW

--- Comment #1 from Eric Botcazou  ---
I can reproduce.