PGI Support


Technical Problem Report 3355


The following is accepted under gcc (and Sun's cc
and SGI's cc) but not under pgcc:

int foo (int i)
{
        const int BUFSZ = 100;
        int buf[BUFSZ];

        return buf[i];
}

> pgcc -c x.c
PGC-S-0091-Integer constant expression required (x.c: 4)
PGC/x86-64 Linux/x86-64 5.2-1: compilation completed with severe errors


Technical Problem Report 3360


% more b.f

      type typ_a
      sequence
      type (typ_b), pointer :: pt_b
      end type typ_a  
    
      type typ_b
      sequence
      type (typ_a), pointer :: pt_a
      end type typ_b

      end

% pgf90 -V -c b.f

pgf90 5.2-2
Copyright 1989-2000, The Portland Group, Inc.  All Rights Reserved.
Copyright 2000-2004, STMicroelectronics, Inc.  All Rights Reserved.
PGF90/any Linux/x86 5.2-2
Copyright 1989-2000, The Portland Group, Inc.  All Rights Reserved.
Copyright 2000-2004, STMicroelectronics, Inc.  All Rights Reserved.
PGF90-S-0155-SEQUENCE must be set for nested derived type typ_b (b.f: 4)
  0 inform,   0 warnings,   1 severes, 0 fatal for MAIN