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