This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: IMA corner case with forward declarations of statics


Dale Johannesen <dalej@apple.com> writes:

> However, 6.2.2 makes it clear that the order does matter,
> and the reverse order is undefined behavior.  (Which does not mean we
> have to treat it as an error; you and I both thought this was valid,
> and I'm sure I've seen it done that way.  Disallowing it is sure to
> break existing code.)

Yeah, and there are examples in GCC's own source.  I'm thinking
mandatory warning in normal mode, error in IMA mode.

zw


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