This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14263] [3.3/3.4/3.5 Regression] Cryptic diagnostic for cast from virtual base class not using dynamic_cast
- 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: 23 Feb 2004 21:50:54 -0000
- Subject: [Bug c++/14263] [3.3/3.4/3.5 Regression] Cryptic diagnostic for cast from virtual base class not using dynamic_cast
- References: <20040223210331.14263.gdr@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-23 21:50 -------
A regression from 3.2.3:
tin:~/src/gnu/gcctest>gcc pr14263.cc
pr14263.cc: In function `int main()':
pr14263.cc:8: error: cannot convert from base `A' to derived type `B' via virtual base `A'
tin:~/src/gnu/gcctest>~/ia32_linux_gcc3_3/bin/gcc pr14263.cc
pr14263.cc: In function `int main()':
pr14263.cc:8: error: cannot convert from base `A' to derived type `B' via
virtual base `A'
tin:~/src/gnu/gcctest>~/ia32_linux_gcc3_0/bin/gcc pr14263.cc
pr14263.cc: In function `int main()':
pr14263.cc:8: invalid static_cast from type `A*' to type `B*'
tin:~/src/gnu/gcctest>~/ia32_linux_gcc3_2/bin/gcc pr14263.cc
pr14263.cc: In function `int main()':
pr14263.cc:8: invalid static_cast from type `A*' to type `B*'
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |diagnostic
Last reconfirmed|0000-00-00 00:00:00 |2004-02-23 21:50:52
date| |
Summary|Cryptic diagnostic for cast |[3.3/3.4/3.5 Regression]
|from virtual base class not |Cryptic diagnostic for cast
|using dynamic_cast |from virtual base class not
| |using dynamic_cast
Target Milestone|--- |3.3.4
Version|unknown |3.3.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14263