[Bug c++/8680] g++ doesn't warn when passing a C++ funcptr instead of extern "C" funcptr

pinskia@physics.uc.edu gcc-bugzilla@gcc.gnu.org
Sun May 25 23:20:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8680


pinskia@physics.uc.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #1864|application/octet-stream    |text/plain
          mime type|                            |
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-05-25 23:11:13
               date|                            |


------- Additional Comments From pinskia@physics.uc.edu  2003-05-25 23:11 -------
confirmed on mainline (20030525) with modified sources (for 3.4 fixes of pedantic):

extern "C" {
void doSomething(int, void*(*)(void*));
} 

void* func(void*);

int main()
{
    doSomething(1, func);
    return 0;
}



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Gcc-bugs mailing list