Closed sroy4899 closed 4 years ago
Sounds like weirdness in cast insertion? That code is definitely a problem area. This might be somehow be related to the cast insertion problem in #160.
Yeah, this is a bit of a compound issue in terms of the cast the second time around and also no output from output-postfix, so feel free to split it as you need.
This issue was based on regression test itypecast.c
if anyone was curious. It's also the reason why in PR #232 , itypecast.c
is marked as BUG.
Consider the following code in
file.c
:After converting once, it results in
file.first.c
:After converting
file.first.c
, two interesting things happen: firstly, the output is different, namely:(note the extra cast for fp1). Secondly, this output does not appear when you run with the flag
output-postfix=
. So, for instance, in order to create the file, I ranbut the file that I expected (
file.first.second.c
) was not created. However, if I run:then I get the output I pasted above.