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: "rguenth 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 10:22:06 -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 #1 from rguenth at gcc dot gnu dot org 2005-10-18 10:22 -------
I guess before we treated the whole expression
T *cast = dynamic_cast<T *>(element->ownerDoc()->getElementFromHandle(node));
as dependent on T, while afterwards we try to resolve everything for the
argument of the dynamic_cast<>. Whether the one or the other is the correct
behavior is beyond my current knowledge.
EDG accepts the testcase in non-strict mode, but rejects it with -strict_ansi.
Maybe we can do the same with -fpermissive?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24425