public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jakub at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/40684]  New: ICE in tsubst
Date: Wed, 08 Jul 2009 15:44:00 -0000	[thread overview]
Message-ID: <bug-40684-87@http.gcc.gnu.org/bugzilla/> (raw)

// { dg-options "-std=c++0x" }

struct A
{
};

template <typename S, typename T, typename U, typename S::v = &S::v::s>
typename S::A
foo (S c, T t, U u)
{
}

struct B
{
  struct C
  {
    template <typename U>
    C (U t)
    {
      A a;
      A b = foo (this, a, t);
    }
  } c;
  B () : c (A ())
  {
  }
};

int
main ()
{
  B f;
}

ICEs in tsubst (seeing ADDR_EXPR there).  This is likely invalid testcase,
though the ICE is the only diagnostics issued, whether the original
testcase from http://bugzilla.redhat.com/509596 is valid or not is unclear.


-- 
           Summary: ICE in tsubst
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org


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


             reply	other threads:[~2009-07-08 15:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-08 15:44 jakub at gcc dot gnu dot org [this message]
2009-07-08 20:11 ` [Bug c++/40684] " dodji at gcc dot gnu dot org
2009-07-09 13:21 ` dodji at redhat dot com
2009-07-09 17:57 ` dodji at gcc dot gnu dot org
2009-07-09 18:01 ` dodji at gcc dot gnu dot org
2009-07-09 18:03 ` dodji at gcc dot gnu dot org
2009-07-23 17:41 ` hjl dot tools 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=bug-40684-87@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).