This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/10602: [3.4] ICE in c-typeck.c, sometimes in tree-inline.c (tree check failure)
- From: steven at gcc dot gnu dot org
- To: gcc-gnats at gcc dot gnu dot org
- Date: 2 May 2003 12:09:57 -0000
- Subject: c/10602: [3.4] ICE in c-typeck.c, sometimes in tree-inline.c (tree check failure)
- Reply-to: steven at gcc dot gnu dot org
>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: