public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/10602: [3.4] ICE in c-typeck.c, sometimes in tree-inline.c (tree check failure)
@ 2003-05-02 12:19 steven
  0 siblings, 0 replies; 2+ messages in thread
From: steven @ 2003-05-02 12:19 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, steven

Synopsis: [3.4] ICE in c-typeck.c, sometimes in tree-inline.c (tree check failure)

State-Changed-From-To: open->analyzed
State-Changed-By: steven
State-Changed-When: Fri May  2 12:19:46 2003
State-Changed-Why:
    Confirmed, devphil says it's been there for some time:
    : Test is the same (fail) at both endpoints  (2002-10-02-trunk,
    : 2003-05-01-trunk), so there's nothing for me to do.
    
    
    Line-numbered input is:
    ========================================
         1  tree g95_type_for_mode (enum machine_mode);
         2  
         3  tree
         4  g95_type_for_mode (enum machine_mode mode)
         5  {
         6    return 0;
         7  }
         8  
    
    ========================================
    
    
    Diagnostic output follows, from the last compiler tested:
    input:1: error: parse error before "g95_type_for_mode"
    input:1: warning: `enum machine_mode' declared inside parameter list
    input:1: warning: its scope is only this definition or declaration, which is probably not what you want
    input:1: warning: parameter has incomplete type
    input:1: warning: data definition has no type or storage class
    input:4: error: parse error before "g95_type_for_mode"
    input:4: warning: `enum machine_mode' declared inside parameter list
    input:5: error: parameter `mode' has incomplete type
    input: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.
    
    Compiler output follows, from the last compiler tested:
            .file   "input"

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10602


^ permalink raw reply	[flat|nested] 2+ messages in thread

* c/10602: [3.4] ICE in c-typeck.c, sometimes in tree-inline.c (tree check failure)
@ 2003-05-02 12:16 steven
  0 siblings, 0 replies; 2+ messages in thread
From: steven @ 2003-05-02 12:16 UTC (permalink / raw)
  To: gcc-gnats


>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:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-02 12:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-02 12:19 c/10602: [3.4] ICE in c-typeck.c, sometimes in tree-inline.c (tree check failure) steven
  -- strict thread matches above, loose matches on Subject: below --
2003-05-02 12:16 steven

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).