From: Georg Bauhaus <rm-host.bauhaus@maps.futureapps.de>
Subject: Re: GNAT.Regpat problem.
Date: Tue, 22 Mar 2011 20:01:18 +0100
Date: 2011-03-22T20:01:19+01:00 [thread overview]
Message-ID: <4d88f1fe$0$6981$9b4e6d93@newsspool4.arcor-online.net> (raw)
In-Reply-To: <alpine.WNT.2.00.1103221429170.5412@WHIRLWIND>
On 3/22/11 7:35 PM, Peter C. Chapin wrote:
> with Ada.Text_IO; use Ada.Text_IO;
> with GNAT.Regpat;
>
> procedure Check is
> Matcher : GNAT.Regpat.Pattern_Matcher(10);
>
> begin
> GNAT.Regpat.Compile(Matcher, "^[:space:]*xyzzy$");
>
> exception
> when Storage_Error =>
> Put_Line("Insufficient space in Pattern_Matcher");
>
> end Check;
Does -fstack-check (-fno-stack-check) have an effect?
FWIW, I get
$ ./check
raised SYSTEM.REGPAT.EXPRESSION_ERROR : Pattern_Matcher is too small
with GNAT GPL 2010 on Mac OS X. This agrees with the source of
Compile in s-regpat.adb, which has
if Size > Matcher.Size then
raise Expression_Error with "Pattern_Matcher is too small";
end if;
Looks like a documentation bug in any case.
next prev parent reply other threads:[~2011-03-22 19:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-22 18:35 GNAT.Regpat problem Peter C. Chapin
2011-03-22 19:01 ` Georg Bauhaus [this message]
2011-03-22 19:17 ` Florian Weimer
2011-03-22 19:21 ` Adam Beneschan
2011-03-22 20:31 ` Simon Wright
2011-03-24 10:23 ` Peter C. Chapin
2011-03-24 10:43 ` Dmitry A. Kazakov
2011-03-24 14:04 ` Peter C. Chapin
2011-03-24 14:34 ` Dmitry A. Kazakov
2011-03-24 16:20 ` Georg Bauhaus
2011-03-24 17:37 ` Dmitry A. Kazakov
2011-03-24 21:12 ` Peter C. Chapin
2011-03-25 9:02 ` Dmitry A. Kazakov
2011-03-24 16:41 ` Georg Bauhaus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox