------- Additional Comments From joseph at codesourcery dot com  2005-01-18 
14:39 -------
Subject: Re:  [4.0 regression] ICE in common_type, at c-typeck.c:490

On Tue, 18 Jan 2005, jakub at gcc dot gnu dot org wrote:

> Note that GCC 3.4's common_type handled ENUMERAL_TYPEs.
> This was removed in PR13519 patch.

Indeed, previously common_type did not have a well-defined purpose or 
interface and tried to do three different things.  Now it is well-defined:

/* Return the common type for two arithmetic types under the usual
   arithmetic conversions.  The default conversions have already been
   applied, and enumerated types converted to their compatible integer
   types.

So under the interface currently specified it shouldn't receive enumerated 
types.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19342

Reply via email to