public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/27807] [4.1/4.2 regression] ICE on invalid initializer
Date: Mon, 05 Jun 2006 02:47:00 -0000	[thread overview]
Message-ID: <20060605024652.6039.qmail@sourceware.org> (raw)
In-Reply-To: <bug-27807-1771@http.gcc.gnu.org/bugzilla/>



------- Comment #2 from mmitchel at gcc dot gnu dot org  2006-06-05 02:46 -------
Subject: Bug 27807

Author: mmitchel
Date: Mon Jun  5 02:46:38 2006
New Revision: 114382

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114382
Log:
        PR c++/27819
        * decl.c (cp_finish_decl): Process initializers for static data
        members with non-dependent initializers, even in templates.
        PR c++/27722
        * decl.c (maybe_deduce_size_from_array_init): If the declaration
        is erroneous, give it an erroneous type.
        (layout_var_decl): If the type is erroneous, give up.
        (check_initializer): Likewise.
        PR c++/27807
        * cp-tree.h (TYPE_OBJ_P): New macro.
        (TYPE_PTROB_P): Use it.
        (TYPE_REF_OBJ_P): Likewise.
        * semantics.c (finish_compound_literal): Do not permit compound
        literals of non-object types.
        PR c++/27806
        * typeck.c (original_type): Robustify.
        PR c++/27819
        * g++.dg/template/static25.C: New test.
        PR c++/27722
        * g++.dg/init/array21.C: New test.
        PR c++/27807
        * g++.dg/ext/complit7.C: New test.

        PR c++/27806
        * g++.dg/parse/ptrmem5.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/ext/complit7.C
    trunk/gcc/testsuite/g++.dg/init/array21.C
    trunk/gcc/testsuite/g++.dg/parse/ptrmem5.C
    trunk/gcc/testsuite/g++.dg/template/static25.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


  parent reply	other threads:[~2006-06-05  2:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-29 21:17 [Bug c++/27807] New: " reichelt at gcc dot gnu dot org
2006-05-29 21:21 ` [Bug c++/27807] " pinskia at gcc dot gnu dot org
2006-05-31  2:29 ` bangerth at dealii dot org
2006-05-31 20:28 ` mmitchel at gcc dot gnu dot org
2006-06-04 19:42 ` mmitchel at gcc dot gnu dot org
2006-06-05  2:47 ` mmitchel at gcc dot gnu dot org [this message]
2006-06-05  2:53 ` mmitchel at gcc dot gnu dot org
2006-06-05  2:55 ` mmitchel at gcc dot gnu dot org
2006-08-21 10:48 ` rguenth at gcc dot gnu dot 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=20060605024652.6039.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).