[Bug c++/41840] g++ compiler giving error for array of pointers of abstract base class
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Oct 27 10:30:00 GMT 2009
------- 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
More information about the Gcc-bugs
mailing list