We build up a SCOPE_REF to remember that we saw a qualified-id in a template. We also want to convert_from_reference so that a use of a reference member decays to a non-reference. But we were doing them in the wrong order, so that the second operand of the SCOPE_REF was an INDIRECT_REF, which doesn't make sense. Tested x86_64-pc-linux-gnu, applying to trunk.