On Fri, 25 Nov 2016, Eric Botcazou wrote:

> > Martin reported a profiledbootstrap issue with a SSA coalescing issue
> > with a
> > 
> >   return _17(ab);
> 
> OK.
> 
> > Yeah, seeing this one as well.
> 
> It fails at -O0 with just:
> 
> eric@polaris:~/build/gcc/native> cat p.adb
> procedure P is
> 
>   subtype Char is Character range 'W' .. 'Z';
> 
>   type Arr is array (Char range <>) of Integer;
> 
>   type Rec (D : Char) is record
>     A  : Arr (D .. 'W');
>   end record;
> 
> begin
>   null;
> end;
> eric@polaris:~/build/gcc/native> gcc/gnat1 -quiet p.adb
> +===========================GNAT BUG DETECTED==============================+
> | 7.0.0 20161125 (experimental) [trunk revision 242863] (x86_64-suse-linux) 
> GCC error:|
> | in size_binop_loc, at fold-const.c:1744                                  |
> | Error detected at p.adb:8:20                 
> 
> so I presume this comes from the recent match.pd changes.

Could be - please open a PR.

Thanks,
Richard.

Reply via email to