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/6635: bug is in cpplex.c of gcc-3.2 experimental



>Number:         6635
>Category:       c
>Synopsis:       bug is in cpplex.c of gcc-3.2 experimental
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 11 10:16:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     k_fukui@highway.ne.jp
>Release:        gcc-3.2 experimental, pch-branch
>Organization:
>Environment:
linuxppc
>Description:
Bug is in cpplex.c of gcc-3.2
this problem is NOT gcc-3.1.pre.
But gcc-3.2.expromental,pch-branch have this.
Look attached result
>How-To-Repeat:
compile this source
------------------

#include<stdio.h>

char str0[]={"absced
fghi"};

char str1[]={"absced>
> fghi"};


int main(void)
{

	printf("%s\n",str0);
	printf("%s\n",str1);
	return 0;
}
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="report_to_GNAT"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="report_to_GNAT"

LS0tLS0tLS0tLS0tLS0tcHJvYmxlbSBjcHBsZXguYyBpbiBnY2MtMy4yIC0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLQpbcm9vdEBnNG1wa2Z1a3VpIFRlc3QtcGxhY2VdIyBnY2MgLXYK
UmVhZGluZyBzcGVjcyBmcm9tIC91c3IvbGliL2djYy1saWIvcG93ZXJwYy11bmtub3duLWxpbnV4
LWdudS8zLjIvc3BlY3MKQ29uZmlndXJlZCB3aXRoOiAuLi9jb25maWd1cmUgLS1tYW5kaXI9L3Vz
ci9zaGFyZS9tYW4gLS1pbmZvZGlyPS91c3Ivc2hhcmUvaW5mbyAKLS1lbmFibGUtc2hhc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