public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jason at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/42844] const variable requires initializer / no explicitly declared default constructor
Date: Tue, 27 Apr 2010 18:56:00 -0000	[thread overview]
Message-ID: <20100427185636.17888.qmail@sourceware.org> (raw)
In-Reply-To: <bug-42844-9357@http.gcc.gnu.org/bugzilla/>



------- Comment #13 from jason at gcc dot gnu dot org  2010-04-27 18:56 -------
Subject: Bug 42844

Author: jason
Date: Tue Apr 27 18:56:13 2010
New Revision: 158797

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158797
Log:
        PR c++/42844
        * decl.c (check_for_uninitialized_const_var): Handle classes that need
        constructing, too.
        (check_initializer): Call it for classes that need constructing, too.
        * class.c (in_class_defaulted_default_constructor): New.
        * cp-tree.h: Declare it.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/pr42844-2.C
    trunk/gcc/testsuite/g++.dg/init/pr42844.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/class.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp0x/defaulted2.C
    trunk/gcc/testsuite/g++.dg/tree-ssa/pr27549.C
    trunk/gcc/testsuite/g++.old-deja/g++.mike/dyncast8.C
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/src/future.cc
    trunk/libstdc++-v3/src/system_error.cc
    trunk/libstdc++-v3/testsuite/util/testsuite_error.h


-- 


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


  parent reply	other threads:[~2010-04-27 18:56 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-22 11:27 [Bug c++/42844] New: " mathieu dot malaterre at gmail dot com
2010-01-22 11:57 ` [Bug c++/42844] " redi at gcc dot gnu dot org
2010-01-22 12:27 ` redi at gcc dot gnu dot org
2010-01-22 15:56 ` pinskia at gcc dot gnu dot org
2010-01-22 15:57 ` pinskia at gcc dot gnu dot org
2010-03-30 11:40 ` fabien dot chene at gmail dot com
2010-03-30 11:44 ` dodji at redhat dot com
2010-03-30 11:51 ` fabien dot chene at gmail dot com
2010-03-30 11:56 ` redi at gcc dot gnu dot org
2010-03-30 14:11 ` fabien dot chene at gmail dot com
2010-03-30 16:47 ` fabien dot chene at gmail dot com
2010-04-12 20:45 ` fabien dot chene at gmail dot com
2010-04-20 22:49 ` fabien dot chene at gmail dot com
2010-04-27 18:56 ` jason at gcc dot gnu dot org [this message]
     [not found] <bug-42844-4@http.gcc.gnu.org/bugzilla/>
2010-11-12 15:37 ` fabien.chene at gmail dot com
2011-09-23 21:36 ` jason at gcc dot gnu.org
2011-09-25 20:37 ` jason at gcc dot gnu.org
2014-02-20  8:44 ` potswa at mac 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=20100427185636.17888.qmail@sourceware.org \
    --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).