🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #716

Compiler error in g++ 1.36

#716
From: angel li
Date: Mon, 15 Jan 1990 19:25
25 lines
1021 bytes
On VMS, using g++ 1.36.3-, the following code does not compile:

    #define	stdin	$$PsectAttributes_NOSHR$$stdin
    #define	stdout	$$PsectAttributes_NOSHR$$stdout
    #define	stderr	$$PsectAttributes_NOSHR$$stderr

    extern int *stdin;
    extern int *stdout;
    extern int *stderr;

    extern void frob(int *, int *);

    void
    sub()
    {
	frob(stdin, stdout);
    }

The compiler complains on lines 5,6,7:

	type name expected before `*'

If the leading "$$" characters are replaced by "_$" in lines 1, 2, and 3 ,
the file compiles cleanly.  Dollars are legal identifier characters on VMS.
Technical Details
Message-ID: <9001151925.AA08585@flipper.Miami.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!FLIPPER.MIAMI.EDU!angel

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!FLIPPER.MIAMI.EDU!angel
From: angel@FLIPPER.MIAMI.EDU (angel li)
Newsgroups: gnu.g++.bug
Subject: Compiler error in g++ 1.36
Message-ID: <9001151925.AA08585@flipper.Miami.EDU>
Date: 15 Jan 90 19:25:27 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 25