🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Gcc 2.3.1 has some trouble parsing ptr to function (still)

#1141
From: lewis
Date: Tue, 10 Nov 1992 10:45
21 lines
979 bytes
/*
 * gcc 2.3.1 has trouble parsing functions returning pointers
 * to functions which return typedefs.
 *
 * Compile this code with:
 *      g++ -c test.c
 * procudes:
 *      test.c:20: parse error before `('
 */
#define qShowError      1


int (*GetOutOfMemoryProc ()) (int);        // This works

typedef int     Boolean;

#if     !qShowError
extern
#endif
Boolean (*GetOutOfMemoryProc2 ()) (int);   // Then why doesn't this?
Lewis Gordon Pringle, Jr.                                (lewis@sophists.com)
Technical Details
Message-ID: <m0mp2ST-000AWzC@sophists.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!sophists.COM!lewis

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!sophists.COM!lewis
From: lewis@sophists.COM
Subject: Gcc 2.3.1 has some trouble parsing ptr to function (still)
Message-ID: <m0mp2ST-000AWzC@sophists.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Tue, 10 Nov 1992 10:45:09 GMT
Approved: bug-g++@prep.ai.mit.edu
Lines: 23