public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/54253] [C++11] constexpr constructor crashes with polymorphic base classes
Date: Mon, 10 Sep 2012 14:24:00 -0000	[thread overview]
Message-ID: <bug-54253-4-23dytGd7MP@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-54253-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> 2012-09-10 14:24:15 UTC ---
Author: jason
Date: Mon Sep 10 14:24:07 2012
New Revision: 191145

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191145
Log:
    PR c++/54341
    PR c++/54253
    * semantics.c (sort_constexpr_mem_initializers): New.
    (build_constexpr_constructor_member_initializers): Use it.
    (cx_check_missing_mem_inits): Skip artificial fields.
    * init.c (expand_aggr_init_1): Don't zero out a class
    with no data.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-virtual2.C
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-virtual3.C
Modified:
    branches/gcc-4_7-branch/gcc/cp/ChangeLog
    branches/gcc-4_7-branch/gcc/cp/init.c
    branches/gcc-4_7-branch/gcc/cp/semantics.c
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog


  parent reply	other threads:[~2012-09-10 14:24 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-14 14:15 [Bug c++/54253] New: " mrks at koios dot de
2012-08-14 14:20 ` [Bug c++/54253] " paolo.carlini at oracle dot com
2012-08-14 14:34 ` paolo.carlini at oracle dot com
2012-08-14 14:45 ` mrks at koios dot de
2012-08-14 14:48 ` paolo.carlini at oracle dot com
2012-08-14 14:49 ` mrks at koios dot de
2012-08-14 14:51 ` mrks at koios dot de
2012-08-21 11:54 ` paolo.carlini at oracle dot com
2012-09-06 16:24 ` jason at gcc dot gnu.org
2012-09-06 16:25 ` jason at gcc dot gnu.org
2012-09-06 16:25 ` jason at gcc dot gnu.org
2012-09-10 14:24 ` jason at gcc dot gnu.org [this message]
2012-09-10 14:43 ` jason at gcc dot gnu.org

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=bug-54253-4-23dytGd7MP@http.gcc.gnu.org/bugzilla/ \
    --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: link
Be 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).