This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/1689
- To: nobody at gcc dot gnu dot org
- Subject: Re: c++/1689
- From: nathan at gcc dot gnu dot org
- Date: 18 Jan 2001 10:16:01 -0000
- Cc: gcc-prs at gcc dot gnu dot org,
- Reply-To: nathan at gcc dot gnu dot org
The following reply was made to PR c++/1689; it has been noted by GNATS.
From: nathan@gcc.gnu.org
To: Jorgen.Sigvardsson@kau.se, gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org
Cc:
Subject: Re: c++/1689
Date: 18 Jan 2001 10:15:32 -0000
Synopsis: dynamic_cast operator is wrong
State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Thu Jan 18 02:15:32 2001
State-Changed-Why:
The code is illformed.
You are attempting to cast from a base to a derived type.
[5.2.7/6] therefore applies which says that the base type
must be polymorphic.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=1689&database=gcc