This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24425] [4.0/4.1 Regression] Rejects code from kdegraphics3
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Oct 2005 12:56:23 -0000
- Subject: [Bug c++/24425] [4.0/4.1 Regression] Rejects code from kdegraphics3
- References: <bug-24425-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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