This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]