[4795] in Athena Bugs

home help back first fref pref prev next nref lref last post

Saber msg: v2.1 (4/24/89 lycus vax Unix 4042 0)

daemon@ATHENA.MIT.EDU (jtkohl@ATHENA.MIT.EDU)
Thu Apr 19 14:39:17 1990

From: jtkohl@ATHENA.MIT.EDU
Date: Thu, 19 Apr 90 14:39:00 -0400
To: bugs@ATHENA.MIT.EDU
Cc: jtkohl@ATHENA.MIT.EDU
Saber does not allow the following legitimate C code:
struct bar {
    char *data;
};

int foo(msg)
const struct bar *msg;
{
    printf("message: %s\n",msg->data);
}

it says:
"/tmp/foo.c":8, foo(), Illegal argument type (Error #260)
     7: {
     8:     printf("message: %s\n",msg->data);
                                      ^
     9: }
Illegal argument type:
        (struct bar const *) ->

There's nothing illegal about referencing through a const pointer.

home help back first fref pref prev next nref lref last post