14664-2.C   [plain text]


// 981203 bkoz
// g++/14664 + test
// Build don't link: 
// Special g++ Options: -fpermissive -w

char foo[26];

void bar()
{
  // the addition of the flag "-fno-const-string-literal" reverts to pre-ISO.
  // -g++: ANSI C++ forbids assignment of arrays
  foo = "0123456789012345678901234"; // WARNING -
}