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 middle-end/41183] [4.4 Regression] ICE compiling chromium
Date: Mon, 30 Nov 2009 00:38:00 -0000	[thread overview]
Message-ID: <20091130003748.8255.qmail@sourceware.org> (raw)
In-Reply-To: <bug-41183-18123@http.gcc.gnu.org/bugzilla/>



------- Comment #3 from reichelt at gcc dot gnu dot org  2009-11-30 00:37 -------
Reduced testcase (crashes with "-O2" on i686-pc-linux-gnu):

==========================================================================
void foo(const char*);

template<int*> struct A
{
  template<typename T> A(const int&, T);
  int i;
};

template<int* X> template<typename T> A<X>::A(const int& j, T) : i(j)
{
  foo(0);
  foo(0);
  foo(__PRETTY_FUNCTION__);
}

int N;

struct B
{
  B();
  A<&N> a;
};

B::B() : a(N, 0) {}
==========================================================================

The crash only happens on the 4.4 branch.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
          Component|c++                         |middle-end
           Keywords|                            |ice-on-valid-code, monitored
      Known to fail|                            |4.4.0 4.4.1 4.4.2
      Known to work|4.5.0                       |4.3.4 4.5.0
            Summary|internal compiler error:    |[4.4 Regression] ICE
                   |Segmentation fault compiling|compiling chromium
                   |chromium                    |
   Target Milestone|---                         |4.4.3


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


  parent reply	other threads:[~2009-11-30  0:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-28 16:26 [Bug c++/41183] New: internal compiler error: Segmentation fault " hdasch at gmail dot com
2009-08-28 16:32 ` [Bug c++/41183] " hdasch at gmail dot com
2009-08-28 17:48 ` ubizjak at gmail dot com
2009-11-30  0:38 ` reichelt at gcc dot gnu dot org [this message]
2009-11-30  1:04 ` [Bug c++/41183] [4.4 Regression] ICE " pinskia at gcc dot gnu dot org
2009-11-30  7:57 ` [Bug middle-end/41183] " hjl dot tools at gmail dot com
2009-12-03 15:59 ` jakub at gcc dot gnu dot org
2009-12-03 16:32 ` jakub at gcc dot gnu dot org
2009-12-15 10:25 ` [Bug c++/41183] " jakub at gcc dot gnu dot org
2009-12-15 15:13 ` jakub at gcc dot gnu dot org
2009-12-15 15:15 ` jakub at gcc dot gnu dot org
2009-12-22 23:47 ` reichelt at gcc dot gnu dot org
2010-03-25 16:36 ` jiez 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=20091130003748.8255.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).