Path: 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 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.