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 CE in s-regpat.adb


When the runtime is compiled with checks on (no -gnatp), a constraint error is
raised by the following code:

with GNAT.Regpat; use GNAT.Regpat;
procedure Empty is
   Re : Pattern_Matcher := Compile ("a[]b");
begin
   null;
end Empty;

See gnat.dg/regpat1.adb

2007-09-10  Emmanuel Briot  <briot@adacore.com>

	* s-regpat.adb (Parse_Character_Class): Fix handling of empty character
	classes ("[]").

Attachment: difs
Description: Text document


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