Hi,
I tried to use a similar method with Transform Constraints applied to IK to connect a gun turret to an arm hinge. After that didn't work and finding this thread, I instead tried a simpler method of parenting the IK bone to a hinge bone. It works fine until I try to move the gun assembly with it's own IK, something I want to use to set the gun's target in my game code.
Here is the setup showing the arm IK configuration:

And here is the Gun/Target IK setup, as well as what happens when I rotate the gun using it's target IK constraint:

Will the fix outlined in this thread also take care of this case?