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++/721: ICE when using reserved words as identifiers



>Number:         721
>Category:       c++
>Synopsis:       ICE when using reserved words as identifiers
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 01 13:46:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Roman Zippel
>Release:        2.97 20001101 (experimental)
>Organization:
>Environment:
System: Linux sic 2.4.0-test10 #3 SMP Wed Nov 1 20:34:27 CET 2000 i686 unknown
>Description:
gcc aborts with a segmentation fault instead
of an error message when compiling the example below.
This happens with export, struct, class. Other keywords
I tried give an error message.
>How-To-Repeat:
struct test {
	//int class(void);
	//int struct(void);
        int export(void);
};

int test::export(void)
{
        return 0;
}
>Fix:

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