[Addressed] [since Aug 19] More HD crashing woes

Bugs that have been investigated and resolved somehow.

Moderators: Developers, ZDoom.org Team

Re: [since Aug 19] More HD crashing woes

Postby _mental_ » Thu Sep 14, 2017 12:19 pm

The problem is ZScript compiler does not add implicit scope for if statement without curly brackets.
So expression after if condition belongs to the current scope allowing errors like I found.
_mental_
 
 
 
Joined: 07 Aug 2011

Re: [since Aug 19] More HD crashing woes

Postby _mental_ » Thu Nov 02, 2017 10:16 am

I've added some precautions against 'scope leaking' variables in 57de598.
So they no longer cause an undefined behavior. Referencing such variable outside of its scope is a compilation error.

Please post a new report if there will some crashes with the latest code.
_mental_
 
 
 
Joined: 07 Aug 2011

Previous

Return to Closed Bugs

Who is online

Users browsing this forum: Google [Bot] and 1 guest