Bug 18455 - const_folder::visit_binary_expression hurting type inference
Summary: const_folder::visit_binary_expression hurting type inference
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: translator (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-26 19:48 UTC by Frank Ch. Eigler
Modified: 2015-09-23 21:52 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Ch. Eigler 2015-05-26 19:48:13 UTC
% stap -p2 -e 'probe oneshot { println(i+0) }'

... should work, and print 0.  But the const_folder logic elides the "+0" part of that expression without passing on the type inference (i <= pe_long).
Comment 1 Abe Jakop 2015-09-23 21:52:04 UTC
fixed by commit 4375d018c2634f256c536b46ca1d266f615ba8b2