[Ada] Hang on generic declaration with ambiguous formal package
Pierre-Marie de Rodat
derodat@adacore.com
Mon Jul 6 11:38:55 GMT 2020
This patch fixes the compiler whereby malformed code featuring a generic
package declaration with a formal package may result in an infinite loop
when the name of the formal package is hidden by the formal parameter
itself.
Tested on x86_64-pc-linux-gnu, committed on trunk
gcc/ada/
* sem_ch12.adb (Analyze_Associations): Add check for errors on
the generic formal before continuing with instantiation.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 1080 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200706/6e0788d1/attachment-0001.bin>
More information about the Gcc-patches
mailing list