c++/2214: Internal compiler error in finish_function

gcoakley@mqsoftware.com gcoakley@mqsoftware.com
Wed Mar 7 12:46:00 GMT 2001


>Number:         2214
>Category:       c++
>Synopsis:       Internal compiler error in finish_function
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 07 12:46:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Glen Coakley (gcoakley@mqsoftware.com)
>Release:        unknown-1.0
>Organization:
>Environment:
Linux frodo.mqsoftware.com 2.2.16-22 #1 Tue Aug 22 16:49:06 EDT 2000 i686 unknown
>Description:
                tst.c: In function `int main (int, char **)':
                tst.c:20: parse error before `}'
                tst.c:23: Internal error #122.
                tst.c:23: 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:
Compile source:

FILE: tst.c

int main (int argc, char *argv[])
{
    int rc;

    if (argc == 2)
    {
	if (argv[1] != 0)
	{
	    if (argv[1][0] == '\0')
	        rc = 1;
	    else
	    	rc = 0
	}
    }
    return rc;
}


FILE: tst.s
    .file   "tst.c"
    .version    "01.01"
gcc2_compiled.:


FILE: tst.ii
# 1 "tst.c"

int main (int argc, char *argv[])
{
    int rc;

    if (argc == 2)
    {
        if (argv[1] != 0)
        {
            if (argv[1][0] == '\0')
                rc = 1;
            else
                rc = 0
        }
    }
    return rc;
}
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list