fix Issue 12841 - ICE on taking function address
Merge pull request #3616 from 9rnsr/fix12841

Issue 12841 - ICE on taking function address