public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dgregor at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/35023] [4.3 regression] ICE with parameter pack in variable declaration
Date: Fri, 15 Feb 2008 17:34:00 -0000	[thread overview]
Message-ID: <20080215173349.20136.qmail@sourceware.org> (raw)
In-Reply-To: <bug-35023-1771@http.gcc.gnu.org/bugzilla/>



------- Comment #2 from dgregor at gcc dot gnu dot org  2008-02-15 17:33 -------
Subject: Bug 35023

Author: dgregor
Date: Fri Feb 15 17:33:02 2008
New Revision: 132348

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132348
Log:
2008-02-15  Douglas Gregor  <doug.gregor@gmail.com>

        PR c++/35023
        PR c++/35024
        PR c++/35026
        * pt.c (finish_member_template_decl): If the type in a TYPE_DECL
        is error_mark_node, return an error early.
        (find_parameter_packs_r): Pass the pointer set along to recursive
        calls of cp_walk_subtrees; don't try to manage the pointer set
        ourselves.
        (uses_parameter_packs): Pass the pointer set to cp_walk_tree.
        (make_pack_expansion): Ditto.
        (check_for_bare_parameter_packs): Ditto. Also, don't bother taking
        a second pass through the tree with find_parameter_packs_r; that
        second pass no longer does anything.
        (push_template_decl_real): If we have an erroneous declaration,
        set its type to error_mark_node before returning an error.

2008-02-15  Douglas Gregor  <doug.gregor@gmail.com>

        PR c++/35023
        PR c++/35024
        PR c++/35026
        * g++.dg/cpp0x/vt-35026.C: New.
        * g++.dg/cpp0x/vt-35023.C: New.
        * g++.dg/cpp0x/vt-34055.C: Tweak expected error messages.
        * g++.dg/cpp0x/vt-35024.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/vt-35023.C
    trunk/gcc/testsuite/g++.dg/cpp0x/vt-35024.C
    trunk/gcc/testsuite/g++.dg/cpp0x/vt-35026.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp0x/vt-34055.C


-- 


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


  parent reply	other threads:[~2008-02-15 17:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-30  0:22 [Bug c++/35023] New: " reichelt at gcc dot gnu dot org
2008-01-30  0:22 ` [Bug c++/35023] " reichelt at gcc dot gnu dot org
2008-01-30 11:35 ` rguenth at gcc dot gnu dot org
2008-01-30 11:35 ` rguenth at gcc dot gnu dot org
2008-02-14 21:43 ` dgregor at gcc dot gnu dot org
2008-02-15  3:51 ` dgregor at gcc dot gnu dot org
2008-02-15 17:34 ` dgregor at gcc dot gnu dot org [this message]
2008-02-15 17:35 ` dgregor 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=20080215173349.20136.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).