This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/24425] [4.0/4.1 Regression] Rejects code from kdegraphics3



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]