Am 24.11.2009 um 23:11 schrieb Scott Beardsley:

pgcc v9 has problem to compile the above test program:

Not for me (pgcc v9.0-3):

$ cat c.c
#include<stddef.h>
int
main ()
{
struct foo {int a, b;}; size_t offset = offsetof(struct foo, b);
  return 0;
}
$ pgcc -V

pgcc 9.0-3 64-bit target on x86-64 Linux -tp gh-64
Copyright 1989-2000, The Portland Group, Inc.  All Rights Reserved.
Copyright 2000-2009, STMicroelectronics, Inc.  All Rights Reserved.
$ pgcc c.c
$ echo $?
0

PGC/x86-64 Linux 9.0-4: compilation completed with severe errors

Ahh it looks like you have a slightly newer version of pgcc than I do.
That might explain the difference.

For me also 9.0-4 works with the above program.

-- Reuti

Reply via email to