This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/41840] g++ compiler giving error for array of pointers of abstract base class
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Oct 2009 10:30:10 -0000
- Subject: [Bug c++/41840] g++ compiler giving error for array of pointers of abstract base class
- References: <bug-41840-18362@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla 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