This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: cc1plus.exe: typo causes STATUS_ACCESS_VIOLATION
- To: Hugh Winkler <hughw at scoutsys dot com>
- Subject: Re: cc1plus.exe: typo causes STATUS_ACCESS_VIOLATION
- From: Mumit Khan <khan at xraylith dot wisc dot edu>
- Date: Tue, 8 Sep 1998 01:26:27 -0500 (CDT)
- Cc: egcs-bugs at cygnus dot com, gnu-win32 at cygnus dot com
On Mon, 7 Sep 1998, Hugh Winkler wrote:
> // this is file cc1bug.cpp (n.b. bug is for c++ program)
> // demonstrates a bug in
> // gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
> // typo in function name causes STATUS_ACCESS_VIOLATION in cc1plus.exe
>
> // command line was gcc cc1bug.cpp
>
> int foo@(void) //typo
> {
> int hr = 0;
> hr = 0; //commenting out this line will cause no access
> violation
> }
The crash is due to change that I had made, and is fixed. I'll issue an
update sometime soon with fixed cc1plus.exe.
Here's what you get now (and will get with stock/vanilla egcs 1.1):
cc1bug.cc:2: syntax error before `@'
cc1bug.cc:5: warning: ANSI C++ forbids declaration `' with no type
cc1bug.cc:5: abstract declarator `int' used as declaration
cc1bug.cc:6: parse error before `}'
Regards,
Mumit
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".