Article View: gnu.g++.bug
Article #1141Gcc 2.3.1 has some trouble parsing ptr to function (still)
From: lewis
Date: Tue, 10 Nov 1992 10:45
Date: Tue, 10 Nov 1992 10:45
21 lines
979 bytes
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!lewisShow 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