I'm a little concerned that we can't figure out which function is being called in this case, since it isn't actually type-dependent, but since this isn't in a constant expression it doesn't really matter. Tested x86_64-pc-linux-gnu, applied to trunk.