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 b13cf7f commit 7a09adaCopy full SHA for 7a09ada
src/linking/linking.cpp
@@ -703,6 +703,17 @@ void linkingt::duplicate_code_symbol(
703
if(!found)
704
break;
705
}
706
+ // different non-pointer arguments with implementation - the
707
+ // implementation is always right, even though such code may
708
+ // be severely broken
709
+ else if(pointer_offset_bits(t1, ns)==pointer_offset_bits(t2, ns) &&
710
+ old_symbol.value.is_nil()!=new_symbol.value.is_nil())
711
+ {
712
+ if(warn_msg.empty())
713
+ warn_msg="non-pointer parameter types differ between "
714
+ "declaration and definition";
715
+ replace=new_symbol.value.is_not_nil();
716
+ }
717
else
718
719
0 commit comments