[Bug c++/22374] New: C++ front-end produces mis-match types in MODIFY_EXPR (dynamic_cast)
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Jul 8 16:10:00 GMT 2005
Testcase:
struct B {
virtual int f() { }
} ob;
struct D : public B {
virtual int f() { }
} od;
main() {
B *b = &ob;
D *c = &dynamic_cast<D&>(*b);
}
Reduced from g++.old-deja/g++.mike/dyncast2.C
Patch in PR 22368 is used to find this.
--
Summary: C++ front-end produces mis-match types in MODIFY_EXPR
(dynamic_cast)
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
OtherBugsDependingO 22368
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22374
More information about the Gcc-bugs
mailing list