public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/24602] g++: Internal error: Illegal instruction (program cc1plus)
Date: Tue, 01 Nov 2005 04:36:00 -0000	[thread overview]
Message-ID: <20051101043653.29782.qmail@sourceware.org> (raw)
In-Reply-To: <bug-24602-11622@http.gcc.gnu.org/bugzilla/>



------- Comment #6 from pinskia at gcc dot gnu dot org  2005-11-01 04:36 -------
Reduced testcase:
struct string;
struct _Deque_iterator     {
     string &operator*() const;
};
template<typename _Function>     void for_each(_Function __f)     {
  _Deque_iterator __first1;
  __f(*__first1);
}
struct locale   {
  locale(const locale& __other) throw();
};
template<typename SequenceT>
void trim(string& Input, const locale& Loc=locale());
int main() {
  for_each(trim<string>);
}
----

This one also ICEs with ICC.  I will let someone else decide if this is valid
or invalid code and then confirm it.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
      Known to fail|                            |2.95.3 3.3.3 3.4.0 4.0.0
                   |                            |4.1.0


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


  parent reply	other threads:[~2005-11-01  4:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-31 23:38 [Bug c++/24602] New: " xeon at gmx dot ch
2005-10-31 23:46 ` [Bug c++/24602] " xeon at gmx dot ch
2005-11-01  0:34 ` pinskia at gcc dot gnu dot org
2005-11-01  2:22 ` pinskia at gcc dot gnu dot org
2005-11-01  2:23 ` pinskia at gcc dot gnu dot org
2005-11-01  3:09 ` pinskia at gcc dot gnu dot org
2005-11-01  4:36 ` pinskia at gcc dot gnu dot org [this message]
2005-11-17 11:59 ` reichelt at gcc dot gnu dot org
2007-07-23 22:05 ` reichelt at gcc dot gnu dot org
2007-07-23 22:08 ` reichelt at gcc dot gnu dot org
2007-11-01 12:53 ` reichelt at gcc dot gnu dot org
2008-03-29 17:33 ` reichelt 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=20051101043653.29782.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).