c++/2142: silly internal error for a well placed ";"
mikea@bell-labs.com
mikea@bell-labs.com
Thu Mar 1 14:46:00 GMT 2001
>Number: 2142
>Category: c++
>Synopsis: silly internal error for a well placed ";"
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Mar 01 14:46:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: mike andrews
>Release: 2.96
>Organization:
>Environment:
linux redhat
>Description:
>How-To-Repeat:
void escape(char *buf)
{
// make sure we escape \, <, and >, work from end of buffer
int l, offs=0;
char c;
l=strlen(buf);
while ((c=buf[l])!='\0';) {
if (c=='\\' || c=='<' || c=='>') {
buf[l+offs]='\\'; offs++;
}
buf[l+offs]=c;
}
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list