Frama-C Bug Tracking System - Frama-C
View Issue Details
0000999Frama-CKernelpublic2011-10-24 13:162014-02-12 16:59
Reporteryakobowski 
Assigned Tovirgile 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionFrama-C Nitrogen-20111001 
Target VersionFixed in VersionFrama-C Oxygen-20120901 
Summary0000999: Missing or misleading warnings when merging two functions
Descriptionframa-c does not complain in the right way when parsing the following code:
- there is no warning for the types, even though the return types are not compatible
- the warning "found two default behaviors, merging them" is not really intuitive for the user, as he has not written "behavior" anywhere.

//@ assigns \nothing;
int foo(int* p);

//@ ensures 0 <= \result < 25;
unsigned short foo()
{
  return 0;
}
TagsNo tags attached.
Attached Files

Notes
(0004718)
   
2014-02-12 16:59   
Fix committed to stable/neon branch.

Issue History
2011-10-24 13:16yakobowskiNew Issue
2011-10-24 13:46yakobowskiStatusnew => assigned
2011-10-24 13:46yakobowskiAssigned To => virgile
2011-10-27 20:35svn
2011-10-27 20:35svnStatusassigned => resolved
2011-10-27 20:35svnResolutionopen => fixed
2012-09-19 17:15signolesFixed in Version => Frama-C Oxygen-20120901
2012-09-19 17:16signolesStatusresolved => closed
2013-12-19 01:12Source_changeset_attached => framac master 32224c87
2014-02-12 16:54Source_changeset_attached => framac stable/neon 32224c87
2014-02-12 16:59Note Added: 0004718
2014-02-12 16:59Statusclosed => resolved