This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/14263] [3.3/3.4/3.5 Regression] Cryptic diagnostic for cast from virtual base class not using dynamic_cast


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]