﻿id	summary	reporter	owner	description	type	status	priority	component	version	resolution	keywords	cc
210	Should string literals be const, like in C++?	mlbrooks		"With array type:
{{{
#ifndef __cforall
#include <stdio.h>
#endif

int main(int argc, char ** argv) {
    char s[] = ""hello"";
    s[3] = 'p';
    s[4] = '!';
    printf(""%s\n"", s);
}
}}}

gcc actual, g++ actual, cfa actual: compile succeeds, run prints ""help!""


With pointer type:
{{{
#ifndef __cforall
#include <stdio.h>
#endif

int main(int argc, char ** argv) {
    char *s = ""hello"";
    s[3] = 'p';
    s[4] = '!';
    printf(""%s\n"", s);
}
}}}

gcc actual, cfa actual: compile succeeds, run gets segmentation fault

g++ actual: compiler warning, ISO C++ forbids converting a string constant to 'char*'
"	enhancement	new	minor	cfa-cc	1.0			
