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: next enum bit



  In message <199808281954.MAA01429@smtp.earthlink.net>you write:
  > 
  > Brenan --
  > 
  >   Here's a patch for part of the problem, which has nothing to do with
  > templates.  Even the C front-end will crash on (the illegal):
  > 
  >   enum E { a, b = (enum E) a };
  > 
  > Jeff, OK?
  > 
  > -- 
  > Mark Mitchell 			mark@markmitchell.com
  > Mark Mitchell Consulting	http://www.markmitchell.com
  > 
  > Fri Aug 28 12:52:18 1998  Mark Mitchell  <mark@markmitchell.com>
  > 
  > 	* convert.c (convert_to_integer): Issue an error on conversions to
  > 	incomplete types.
Seems reasonable.  I guess if we ever needed to allow this kind of
thing for a particular language we would have to move the check into
the language dependent files.

jeff


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