------- Comment #2 from pinskia at gcc dot gnu dot org  2005-10-18 12:56 -------
Reduced testcase:
class SVGDocumentImpl;
class SVGElementImpl
{
  SVGDocumentImpl *ownerDoc() const;
};
template<class T>
void applyContainer(SVGElementImpl *element)
{
  dynamic_cast<T*>(element->ownerDoc()->getElementFromHandle());
}


I don't think we should allow this at all even in premissive mode because it
does not make sense at all that the expression
"element->ownerDoc()->getElementFromHandle()" is dependent at all.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24425

Reply via email to