public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gcc at cohi dot at" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/35828] ICEs in template-heavy C++0x code
Date: Tue, 08 Apr 2008 10:56:00 -0000	[thread overview]
Message-ID: <20080408105558.2036.qmail@sourceware.org> (raw)
In-Reply-To: <bug-35828-6959@http.gcc.gnu.org/bugzilla/>



------- Comment #4 from gcc at cohi dot at  2008-04-08 10:55 -------
The second example could be related with a recursive template, more precisely
the templates seq_min_impl1 and seq_min_impl2 together perform a template
meta-programming "recursive walk" of a template structure, in order to define
their respective "const static size_t min" members.

In the second example the template structure is recursive, i.e. while trying to
determine seq_min_impl1< ... >::min for some template parameters the compiler
will reach a point where that value, through some steps, depends on itself.

(The meta-programming in the code included is a first step towards eliminating
the recursion.)

In other words: If my current understanding of my code is correct, the ICE from
scheme.ii should be an error message.


-- 

gcc at cohi dot at changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|blocker                     |major


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


  parent reply	other threads:[~2008-04-08 10:56 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-04 21:29 [Bug c++/35828] New: ICE on template-heavy C++ code, reported in innocent source line gcc at cohi dot at
2008-04-04 21:31 ` [Bug c++/35828] " gcc at cohi dot at
2008-04-04 21:44 ` gcc at cohi dot at
2008-04-08  8:32 ` gcc at cohi dot at
2008-04-08  8:35 ` [Bug c++/35828] ICEs in template-heavy C++0x code gcc at cohi dot at
2008-04-08 10:56 ` gcc at cohi dot at [this message]
2008-12-28 22:13 ` [Bug c++/35828] [C++0x] ICE on default template template parameter in template function reichelt at gcc dot gnu dot org
2009-04-20 17:51 ` gcc at abeckmann dot de
2009-04-22 23:55 ` pinskia at gcc dot gnu dot org
2009-07-07 22:04 ` jason at gcc dot gnu dot org
2009-07-07 22:11 ` jason at gcc dot gnu dot org
2009-07-07 22:16 ` jason 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=20080408105558.2036.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).