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] |
Shouldn't the compiler error out here. The statement: p = "" should have been p = '\0'; Or does the compiler treat them as equivalent.
On 1/28/07, Denis Vlasenko <vda.linux@googlemail.com> wrote:char p; int main() { p = ""; return 0; }
Don't you think that "" should end up in rw data?
Why? It's not writable after all.
Richard.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |