This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Ada: fix ICE with empty separate


Tested on x86-linux

Fixes an ICE on a procedure with an empty separate:

package T is
  procedure Dummy;
end T;
package body T is
   package Load is
   end Load;

   package body Load is separate;

   procedure Dummy is
   begin
     null;
   end;
end T;

$ touch t-load.adb
$ gcc -c -gnatc -gnatQ t.adb

2004-10-26  Ed Schonberg  <schonberg@gnat.com>

	* sem_ch10.adb (Optional_Subunit): If file of expected subunit is
	empty, post message on stub.

Attachment: difs.26
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]