public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/21117] [3.4/4.0/4.1 Regression] ICE after error about returning an incomplete type
Date: Fri, 05 Aug 2005 23:38:00 -0000	[thread overview]
Message-ID: <20050805233837.8903.qmail@sourceware.org> (raw)
In-Reply-To: <20050420001653.21117.pinskia@gcc.gnu.org>


------- Additional Comments From rth at gcc dot gnu dot org  2005-08-05 23:38 -------
Front end bug.

      error ("return type %q#T is incomplete", TREE_TYPE (fntype));

      /* Make it return void instead, but don't change the
         type of the DECL_RESULT, in case we have a named return value.  */

This is in fact the problem.  If you don't want to make the DECL_RESULT be
VOIDtype (due to follow-on errors), then you need to make it error_mark_node.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|middle-end                  |c++


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


  parent reply	other threads:[~2005-08-05 23:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-20  0:17 [Bug middle-end/21117] New: [4.0/4.1 " pinskia at gcc dot gnu dot org
2005-04-20  0:17 ` [Bug middle-end/21117] " pinskia at gcc dot gnu dot org
2005-04-25 14:31 ` [Bug middle-end/21117] [3.3/3.4/4.0/4.1 " reichelt at gcc dot gnu dot org
2005-07-08  1:45 ` [Bug middle-end/21117] [3.4/4.0/4.1 " mmitchel at gcc dot gnu dot org
2005-07-23  5:03 ` pinskia at gcc dot gnu dot org
2005-08-05 23:38 ` rth at gcc dot gnu dot org [this message]
2005-09-12 20:47 ` [Bug c++/21117] " pinskia at gcc dot gnu dot org
2005-09-27 16:23 ` mmitchel at gcc dot gnu dot org
     [not found] <bug-21117-6528@http.gcc.gnu.org/bugzilla/>
2005-10-12 13:17 ` nathan at gcc dot gnu dot org
2005-10-12 18:02 ` cvs-commit at gcc dot gnu dot org
2005-10-12 18:23 ` cvs-commit at gcc dot gnu dot org
2005-10-12 18:24 ` nathan at gcc dot gnu dot org
2005-10-13 13:11 ` nathan 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=20050805233837.8903.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).