Bug 93001 - [C Bindings] check function type compatibility on redeclaration
Summary: [C Bindings] check function type compatibility on redeclaration
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-27 16:21 EDT by Andrew Niefer CLA
Modified: 2020-09-04 15:25 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Niefer CLA 2005-04-27 16:21:02 EDT
Currently no checking is done on function types in C.
We need to implement checking function type compatibility and return problems on
function redeclarations with incompatible types.
Comment 1 Nathan Ridge CLA 2013-12-15 20:28:30 EST
Actually, even in C++ it seems we don't check:

// in a C++ source file
int foo();
float foo();  // no error