[cfe-commits] Patch to change how const arrays/structs are handled

Eli Friedman eli.friedman at gmail.com
Thu Oct 22 20:46:51 PDT 2009

On Thu, Oct 22, 2009 at 3:08 PM, Tanya Lattner <lattner at apple.com> wrote:
> Ok, I don't understand why address taken should matter if it is declared
> const. Am I missing something?

It's sort of an edge case, but it's something like gcc's
-fmerge-all-constants, which isn't completely standard-compliant.  In
essence, if there are multiple instances of the given function on the
stack, the addresses of each version of the constant are supposed to
be distinct, and this is broken by making the variable a global.


More information about the cfe-commits mailing list