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] improve error recovery after missing type


Tested on i686-linux, committed on HEAD

If a TYPE keyword is missing in a full type declaration, then there
may be a "compilation abandoned" message due to unclean error recovery.
This patch fixes the problem. The following program should generate
only the message

 q.ads:3:03: missing "type"

package Q is
   A  : Integer;
   typex is (a);
end;

2005-03-29  Robert Dewar  <dewar@adacore.com>

	* par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
	missing TYPE Improve the error message generated when compiling a
	limited interface in Ada83 or Ada95 mode.

Attachment: difs.14
Description: Text document


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