[Bug c++/41840] g++ compiler giving error for array of pointers of abstract base class

2009-10-27 Thread bangerth at gmail dot com


--- Comment #3 from bangerth at gmail dot com  2009-10-28 05:17 ---
(In reply to comment #0)
> There are many other such deviations we noticed in this compiler from the
> normal C++ principles.

In addition to the previous answer: since gcc3.3, many many bugs have been
fixed where gcc erroneously accepted code that did not conform to the C++
standard. We believe that gcc4.x is much closer to the C++ standard than 3.3
was.

That said, it does occasionally happen that a bug is introduced. In that case,
please open other bug reports.

Best
 Wolfgang


-- 

bangerth at gmail dot com changed:

   What|Removed |Added

 CC||bangerth at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41840



[Bug c++/41840] g++ compiler giving error for array of pointers of abstract base class

2009-10-27 Thread rguenth at gcc dot gnu dot org


--- Comment #2 from rguenth at gcc dot gnu dot org  2009-10-27 10:30 ---
Because 3.3 is wrong.  You are creating a pointer to an array of 10 mybase,
but instantiating mybase is not valid.  An array of 10 pointers would be

 mybase *ptrs[10];

instead.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41840



[Bug c++/41840] g++ compiler giving error for array of pointers of abstract base class

2009-10-26 Thread ganesh dot borse at credit-suisse dot com


--- Comment #1 from ganesh dot borse at credit-suisse dot com  2009-10-27 
04:22 ---
Created an attachment (id=18909)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18909&action=view)
testpure.ii created by g++ -v -save-temps  command

testpure.ii


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41840