This is the mail archive of the gcc-patches@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]

Re: Prevent seg fault on buggy input


Hi Jeff,

:   > 2000-05-22  Nick Clifton  <nickc@cygnus.com>
:   > 
:   > 	* c-decl.c (finish_decl): Do not attempt to store an init
:   > 	value if it is erroneous.
: Did this ever get addressed?

Yes,

: I can't find the testcase for this, so I can't do any investigation
: myself

The test case was this:
--------------------------------------------
   main ()
   {
      int foo = & 0x10000 + bar;
--------------------------------------------

Cheers
	Nick

PS.  My patch was not approved, but Jason came up with a better
version which did fix the problem.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]