dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bugs #11123] pnetc: Not able to convert function poin


From: James Michael DuPont
Subject: [Pnet-developers] [bugs #11123] pnetc: Not able to convert function pointer types properly
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041111 Firefox/1.0 (Debian package 1.0-2)

This mail is an automated notification from the bugs tracker
 of the project: DotGNU Portable.NET.




/**************************************************************************/
[bugs #11123] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11123>
Project: DotGNU Portable.NET
Submitted by: James Michael DuPont
On: Thu 11/25/2004 at 04:36

Category:  None
Severity:  5 - Average
Item Group:  None
Resolution:  None
Privacy:  Public
Assigned to:  None
Status:  Open


Summary:  pnetc: Not able to convert function pointer types properly

Original Submission:  Here is a test case that happens :
the first warning should be an error, but I disable it. The point is that you 
can convert from the F to void*, but not in the context of line 7. Line 6 
represents the problem I am having compiling.


test3.c:4: warning: incompatible types in assignment2
test3.c:6: no conversion from `int * (S *)' to `int * (S *, S *)'
test3.c:7: no conversion from `int * (S *)' to `void *'
-------------------------------
struct S; 
int F(struct S *);
int foo(){ 
  void * pf= &F;
  int  (*f1)(struct S *,struct S *) =((int (*) (struct S *,struct S *))pf);
  int  (*f2)(struct S *,struct S *) =((int (*) (struct S *,struct S *))F);
 int  (*f3)(struct S *,struct S *) =((int (*) (struct S *,struct S *))(void*)F);
}











For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11123>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]