Skip to content

Commit 2bcc55a

Browse files
committed
Avoid crash in linking conflict report by providing correct type for dereference expression
1 parent 05769c0 commit 2bcc55a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/linking/linking.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ void linkingt::detailed_conflict_report_rec(
143143
if(depth>0 &&
144144
!base_type_eq(t1.subtype(), t2.subtype(), ns))
145145
{
146-
conflict_path=dereference_exprt(conflict_path);
146+
conflict_path=dereference_exprt(conflict_path, t1.subtype());
147147

148148
detailed_conflict_report_rec(
149149
old_symbol,

0 commit comments

Comments
 (0)