Re: 673015 (gprbuild: [hurd-i386] could not create $DIRECTORY/auto.cgpr)
On Wed, 2012-06-27 at 23:03 +0200, Nicolas Boulenguez wrote:
> > Yet, the code above tries to get the Integer'Value of Prefix, while the
> > Default value is set to the string "@@"?
>
> begin
> Compiler.Prefix_Index := Integer'Value (Prefix);
> exception
> when Constraint_Error => Compiler.Prefix_Index := -1;
> end;
>
> When the DOM tree contains no attribute named "prefix", Prefix = "@@".
> In that case, or else when the value cannot be interpreted as an
> Integer, the attempted conversion triggers an exception. This is
> intended, as the exception is catched immediately and a default
> Integer value used instead.
OK, maybe the problems are in tracebak.c. Will check out. But coding
like that is for me a little strange, raising an exception for an
invalid value??
Reply to: