[Ada] Crash on compiling project with multiple subunits per file

Pierre-Marie de Rodat derodat@adacore.com
Fri Jun 19 08:28:34 GMT 2020


This patch fixes the compiler whereby a project with manually specified
Naming for subunits such that several of the subunits exist in the same
file as the unit they are defined in.

Tested on x86_64-pc-linux-gnu, committed on trunk

2020-06-19  Justin Squirek  <squirek@adacore.com>

gcc/ada/

	* lib.adb (Check_Same_Extended_Unit): Add check to determine if
	the body for the subunits exist in the same file as their
	specifications.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 2819 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200619/9d518384/attachment.bin>


More information about the Gcc-patches mailing list