We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2157c1e commit 50b6018Copy full SHA for 50b6018
src/linking/linking.cpp
@@ -677,6 +677,17 @@ void linkingt::duplicate_code_symbol(
677
if(!found)
678
break;
679
}
680
+ // different non-pointer arguments with implementation - the
681
+ // implementation is always right, even though such code may
682
+ // be severely broken
683
+ else if(pointer_offset_bits(t1, ns)==pointer_offset_bits(t2, ns) &&
684
+ old_symbol.value.is_nil()!=new_symbol.value.is_nil())
685
+ {
686
+ if(warn_msg.empty())
687
+ warn_msg="non-pointer parameter types differ between "
688
+ "declaration and definition";
689
+ replace=new_symbol.value.is_not_nil();
690
+ }
691
else
692
693
0 commit comments