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++/41840] g++ compiler giving error for array of pointers of abstract base class



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


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