------- Comment #5 from sgk at troutmask dot apl dot washington dot edu  
2007-08-02 21:42 -------
Subject: Re:  selected_(int|real)_kind fail with -fdefault-integer-8

On Thu, Aug 02, 2007 at 11:17:02PM +0200, Dominique Dhumieres wrote:
> 
> look to yours, but with  -fdefault-integer-8, I get '1 4' instead of
> '2 4'.

We probably wanted to use 'i = 10', which should gives '8 8'.

In looking at the dump again (removing the stuff from PRINT), we have

  int8 i;

  i = 10;
  {
    {
      int8 D.996;

      D.996 = (int8) _gfortran_selected_int_kind (&i);
      _gfortran_transfer_integer (&dt_parm.1, &D.996, 8);
    }

I bet I need to force 'i' to int4.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32968

Reply via email to