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]

c++/1508: crashes when seeing unrecognized variable name.



>Number:         1508
>Category:       c++
>Synopsis:       crashes when seeing unrecognized variable name.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 24 11:26:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Gil Shallom
>Release:        gcc version 2.96 20000731 (Red Hat Linux 7.0)
>Organization:
>Environment:
Linux gx-30.cs.huji.ac.il 2.4.0-test12 #9 Tue Dec 19 01:34:50 IST 2000 i686 unknown
>Description:
There is actually a bug in the program but here
is the bug reported by gcc.

ex2_master.c: In function `int initialize (assignment **, int **, char 
*, int, int *)':
ex2_master.c:156: parse error before `,'
ex2_master.c:159: parse error before `,'
ex2_master.c:162: parse error before `,'
ex2_master.c:165: parse error before `,'
ex2_master.c:168: parse error before `,'
ex2_master.c:212: Internal error #122.
ex2_master.c:212: Internal compiler error in finish_function, at 
../gcc/cp/decl.c:14422
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

>How-To-Repeat:
g++ -I. -g -c -g ex2_master.c
>Fix:
156c156
<   if (!strcmp(assignment, "fixed"))
---
>   if (!strcmp(assignment_param, "fixed"))
159c159
<   if (!strcmp(assignment, "static"))
---
>   if (!strcmp(assignment_param, "static"))
162c162
<   if (!strcmp(assignment, "load"))
---
>   if (!strcmp(assignment_param, "load"))
165c165
<   if (!strcmp(assignment, "cpu"))
---
>   if (!strcmp(assignment_param, "cpu"))
168c168
<   if (!strcmp(assignment, "comm"))
---
>   if (!strcmp(assignment_param, "comm"))
170c170
<       
---
>  
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="pvm3.h"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="pvm3.h"


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