public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: steven@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org
Subject: c/10602: [3.4] ICE in c-typeck.c, sometimes in tree-inline.c (tree check failure)
Date: Fri, 02 May 2003 12:16:00 -0000	[thread overview]
Message-ID: <20030502120957.23279.qmail@sources.redhat.com> (raw)


>Number:         10602
>Category:       c
>Synopsis:       [3.4] ICE in c-typeck.c, sometimes in tree-inline.c (tree check failure)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Fri May 02 12:16:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     steven@gcc.gnu.org
>Release:        GNU C version 3.4 20030501 (experimental).
>Organization:
>Environment:

>Description:
Consider:

------------------------------
tree g95_type_for_mode (enum machine_mode);

tree
g95_type_for_mode (enum machine_mode mode)
{
  return 0;
}
------------------------------

$ ./cc1 t.c
t.c:1: error: parse error before "g95_type_for_mode"
t.c:1: warning: `enum machine_mode' declared inside parameter list
t.c:1: warning: its scope is only this definition or declaration, which is probably not what you want
t.c:1: warning: parameter has incomplete type
t.c:1: warning: data definition has no type or storage class
t.c:4: error: parse error before "g95_type_for_mode"
t.c:4: warning: `enum machine_mode' declared inside parameter list
t.c:5: error: parameter `mode' has incomplete type
 g95_type_for_mode
t.c:5: internal compiler error: tree check: expected class 't', have 'x' (error_mark) in type_lists_compatible_p, at c-typeck.c:719
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
>How-To-Repeat:
Compile the test case provided in the description.
>Fix:
Don't forget to include include files ;-)

Probably just need to insert a few error_mark_node checks in a few places.
>Release-Note:
>Audit-Trail:
>Unformatted:


             reply	other threads:[~2003-05-02 12:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-02 12:16 steven [this message]
2003-05-02 12:19 steven

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=20030502120957.23279.qmail@sources.redhat.com \
    --to=steven@gcc.gnu.org \
    --cc=gcc-gnats@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).