public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/25342] [4.0 Regression]  internal compiler error: in lookup_member, at cp/search.c:1209
Date: Fri, 04 Aug 2006 21:40:00 -0000	[thread overview]
Message-ID: <20060804214000.19075.qmail@sourceware.org> (raw)
In-Reply-To: <bug-25342-8718@http.gcc.gnu.org/bugzilla/>



------- Comment #11 from reichelt at gcc dot gnu dot org  2006-08-04 21:39 -------
Even worse, here's a modified example that produces wrong code on
the 4.0 branch:

====================================
struct A
{
  typedef int X;
};

template<typename T> struct B
{
  typedef typename T::X Y;

  template<Y y, Y> struct C
  {
    enum { i=1 };
  };

  template<Y y> struct C<y,y>
  {
    enum { i=0 };
  };
};

int main()
{
  return B<A>::C<0,0>().i;
}
====================================

The program should return 0, but returns 1 instead.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code


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


  parent reply	other threads:[~2006-08-04 21:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-10 23:57 [Bug c++/25342] New: " jkherciueh at gmx dot net
2005-12-11  0:31 ` [Bug c++/25342] [3.4/4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
2005-12-11  5:47 ` mmitchel at gcc dot gnu dot org
2005-12-12  2:45 ` pinskia at gcc dot gnu dot org
2005-12-19 19:26 ` mmitchel at gcc dot gnu dot org
2006-01-14  6:01 ` pinskia at gcc dot gnu dot org
2006-01-16 20:34 ` janis at gcc dot gnu dot org
2006-02-01  2:51 ` mmitchel at gcc dot gnu dot org
2006-02-01  2:55 ` mmitchel at gcc dot gnu dot org
2006-02-01  2:56 ` [Bug c++/25342] [3.4/4.0 " mmitchel at gcc dot gnu dot org
2006-03-11  3:21 ` mmitchel at gcc dot gnu dot org
2006-08-04 21:17 ` [Bug c++/25342] [4.0 " reichelt at gcc dot gnu dot org
2006-08-04 21:40 ` reichelt at gcc dot gnu dot org [this message]
2007-02-03 16:07 ` gdr 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=20060804214000.19075.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).