🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c
Article #9611

Structures as arguments, lint checking

#9611
From: Paul Schauble
Date: Mon, 20 Oct 1986 02:54
19 lines
948 bytes
I was recently suprised to discover that Microsoft C and two different
lints all pass without complaint the sequence

    struct sa { definition a} a;
    struct sb { definition b} b;

    void sub(x)
    struct sa *x;
    {....
    }

    sub(&b);

Is there something I don't know about that causes & to lose the
information as to the type of structure? Or does everyone happen to have
the same bug?

          Paul
          Schauble at MIT-Multics
Technical Details
Message-ID: <4738@brl-smoke.ARPA>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!caip!brl-adm!brl-smoke!smoke!Schauble@MIT-MULTICS.ARPA

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!caip!brl-adm!brl-smoke!smoke!Schauble@MIT-MULTICS.ARPA
From: Schauble@MIT-MULTICS.ARPA (Paul Schauble)
Newsgroups: net.lang.c
Subject: Structures as arguments, lint checking
Message-ID: <4738@brl-smoke.ARPA>
Date: Sun, 19-Oct-86 22:54:30 EDT
Article-I.D.: brl-smok.4738
Posted: Sun Oct 19 22:54:30 1986
Date-Received: Tue, 21-Oct-86 22:28:09 EDT
Sender: news@brl-smoke.ARPA
Lines: 19