public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/32402] Error while allocating array of pointers to objects of a pure virtual class Date: Thu, 28 Oct 2010 17:30:00 -0000 [thread overview] Message-ID: <20101028173000.Io3Zo2EZvz6YgNo7oDgrEO5LzLjvFhBQCYQTsUaheds@z> (raw) In-Reply-To: <bug-32402-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32402 --- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-10-28 17:30:28 UTC --- It doesn't depend on abstract types, this fails, even though it should be able to declare an array of pure* without seeing the definition of pure: struct pure; void f() { pure** p = new (pure (*[3])); } I think the type-id is parsed correctly (it's fine to use it as a function parameter, for example) but something checking the semantics of the new-expression is wrong.
next prev parent reply other threads:[~2010-10-28 17:30 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-32402-4@http.gcc.gnu.org/bugzilla/> 2010-10-28 17:21 ` redi at gcc dot gnu.org 2010-10-28 17:30 ` redi at gcc dot gnu.org [this message] 2010-10-28 17:44 ` redi at gcc dot gnu.org 2010-10-30 11:47 ` redi at gcc dot gnu.org 2010-10-31 7:34 ` mark at tibanne dot com 2010-10-31 11:31 ` redi at gcc dot gnu.org 2010-10-31 11:59 ` gcc at waisse dot org 2010-10-31 12:42 ` redi at gcc dot gnu.org 2014-08-10 8:47 ` paolo.carlini at oracle dot com 2007-06-19 14:45 [Bug c++/32402] New: " p dot vestjens at gmail dot com 2007-06-19 14:47 ` [Bug c++/32402] " p dot vestjens at gmail dot com 2007-11-12 15:06 ` gcc at waisse dot org 2007-11-12 15:42 ` gcc at waisse dot org 2007-11-12 19:41 ` zackw at panix dot com 2007-11-13 13:38 ` p dot vestjens at gmail dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20101028173000.Io3Zo2EZvz6YgNo7oDgrEO5LzLjvFhBQCYQTsUaheds@z \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).