------- Additional Comments From joseph at codesourcery dot com 2005-01-18 20:10 ------- 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: > But did this change for all frontends or just C? > In the code in question common_type is used by code common to C and C++. I think the underlying problems there are (1) undesigned ad hoc sharing between the front ends, (2) this language-specific function being called from what's essentially an optimization, not only on types that appear directly in the source as operands to which usual arithmetic conversions are to be applies, (3) this optimization happens at this stage at all, rather than later in a language-independent way that doesn't need to call back into front ends. Short term, allowing enumerated types in common_type for C for this special case would make sense as a fix for this bug. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19342