bugDotGNU Portable.NET - Bugs: bug #4694, Possible BUG [PNET][PNET/C] cannot...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #4694: Possible BUG [PNET][PNET/C] cannot declare a function returning a function

Submitter:  James Michael DuPont <mdupont>
Submitted:  Sun 10 Aug 2003 07:11:40 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Wont Fix
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Fri 03 Oct 2003 12:01:03 AM UTC, comment #1: 

Serious abuse of C syntax - it's a miracle that it works
in gcc.  It should be this:

int ((*foo)(float ,int () (float)))(float*);

Unless an actual program can be identified that uses this
form of function declaration, I'll put this this in the
"too hard" basket for now.

Rhys Weatherley <rweather>
Group administrator
Sun 10 Aug 2003 07:11:40 AM UTC, original submission:  

This might not be a bug at all, because it is not meant to be supported,I dont know. Here is some valid c code that does not compile by pnet/C.

function_returning_a_function.c:1: cannot declare a function returning a function
int (foo(float ,int () (float)))(float*);



James Michael DuPont <mdupont>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2003-10-03 rweather StatusNone None
    Open/ClosedOpen None

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code