------- Comment #15 from mark at codesourcery dot com 2006-07-19 06:00 ------- Subject: Re: [4.0 Regression] rejects valid code with some extern "C"
tbm at cyrius dot com wrote: > So apparently this is invalid code. However, I feel very strongly that a > point > release of GCC should *not* introduce a new error - Mark, please modify the > patch applied to the 4.1 branch in a way to allow this code. As a matter of policy, we don't intentionally introduce errors on release branches. However, it is far too strong a statement to say that we should never introduce an error. In many such cases, the new error is either indicative of a situation in which the compiler was behaving randomly (i.e., in which the generated code made no sense) or the new error is a side-effect of some other important change. In this case, we were rejecting valid code. We no longer reject valid code; instead we reject invalid code. (Andrew's comment about the DR being open is accurate, but the DR will almost certainly be resolved so as to make this code invalid.) If you want to find a way to accept the invalid code on the release branch, that's your privilege. I consider it a better use of my (very limited) time to fix places where the compiler fails to conform to the standard. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27227