Debugging in Clion: "Attempt to take address of value not located in memory" with &&

Hi. I'm using the "Evaluate Expression" window in Clion. When in a breakpoint I put in the expression legs[0] != 0 && true (legs is a vector which contains two elements.) and it evaluates to true as I'd expect, but if I put in true && legs[0] != 0 (the conditions are swapped round) then it gives me the error "Attempt to take address of value not located in memory.". To me these seem like they should be the same. I'm using Clion 2016.3. Any ideas what I'm doing wrong?

Patrick.

1

Sorry for the inconvenience! Could you please add the following: #com.jetbrains.cidr.execution.debugger to `Help | Debug Log settings` and send idea.log (Help | Show Log in ...) to clion-support at jetbrains.com.

1
Avatar
Permanently deleted user

Thanks for the response, I've sent that email with the log file.

1

请先登录再写评论。