------- Comment #7 from rleigh at debian dot org 2009-07-28 23:15 ------- Ah, so it's a defect in the actual C++ standard rather than GCC?
I was somewhat confused because while this fails: psess = this->chroot->get_facet<sbuild::chroot_facet_session>(); splitting it into its component parts always succeeds: sbuild::chroot::ptr tmp(this->chroot); psess = tmp->template get_facet<sbuild::chroot_facet_session>(); and I thought that they would be identical in behaviour. But replacing this with a different pointer of the same always fails. test_chroot_base<T> *self(this); psess = self->chroot->template get_facet<sbuild::chroot_facet_session>(); (just in case this was treated specially for some reason). Regards, Roger -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40897