I've tried to check what the "const ptr" points to when no codeline assigns a value to it. It seems to point to the "hello" string anyway. Does g++ assign uninitialized "const char *"s to the first string in the data section or something?
I guess I'd better file a bug-report.
Bookmarks