public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/40684]  New: ICE in tsubst
@ 2009-07-08 15:44 jakub at gcc dot gnu dot org
  2009-07-08 20:11 ` [Bug c++/40684] " dodji at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-07-08 15:44 UTC (permalink / raw)
  To: gcc-bugs

// { 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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-07-23 17:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-08 15:44 [Bug c++/40684] New: ICE in tsubst jakub at gcc dot gnu dot org
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

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).