public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/14230] New: ICE in cp_expr_size
@ 2004-02-21  0:16 jakub at gcc dot gnu dot org
  2004-02-21  0:21 ` [Bug c++/14230] " jakub at gcc dot gnu dot org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: jakub at gcc dot gnu dot org @ 2004-02-21  0:16 UTC (permalink / raw)
  To: gcc-bugs

struct A
{
  A ();
  A (const A&);
  A& operator= (const A&);
};

template<class T>
struct B
{
  struct C
  {
    T y;
    T f () { return y; }
  };

  T f () const
  {
    C c;
    return c.f ();
  }
};

struct D
{
  A a;
};

void foo (B<D> &x)
{
  const A& z = x.f().a;
}

causes ICE on all platforms I've tried, 3.3.3 and 3.4.
It doesn't cause ICE in 2.96-RH, so looks like regression.

-- 
           Summary: ICE in cp_expr_size
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: x86_64-redhat-linux
  GCC host triplet: x86_64-redhat-linux
GCC target triplet: x86_64-redhat-linux


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


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

end of thread, other threads:[~2004-03-27 16:20 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-21  0:16 [Bug c++/14230] New: ICE in cp_expr_size jakub at gcc dot gnu dot org
2004-02-21  0:21 ` [Bug c++/14230] " jakub at gcc dot gnu dot org
2004-02-21  0:41 ` jakub at gcc dot gnu dot org
2004-02-23  0:59 ` [Bug c++/14230] [3.3/3.4/3.5 Regression] " giovannibajo at libero dot it
2004-03-01 20:37 ` mmitchel at gcc dot gnu dot org
2004-03-01 21:50 ` jason at redhat dot com
2004-03-01 22:04 ` mark at codesourcery dot com
2004-03-02 21:05 ` jason at redhat dot com
2004-03-06 23:38 ` pinskia at gcc dot gnu dot org
2004-03-08 20:55 ` jason at gcc dot gnu dot org
2004-03-09 10:07 ` cvs-commit at gcc dot gnu dot org
2004-03-09 10:08 ` cvs-commit at gcc dot gnu dot org
2004-03-09 10:10 ` [Bug c++/14230] [3.3 " mmitchel at gcc dot gnu dot org
2004-03-13  2:01 ` gdr at gcc dot gnu dot org
2004-03-13  2:01 ` cvs-commit at gcc dot gnu dot org
2004-03-27 16:20 ` cvs-commit at gcc dot gnu dot org

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