Scope encoding of string literals in default arguments questions (another case)
scott douglass
sdouglass at arm.com
Fri Nov 1 13:37:32 UTC 2002
Hi,
I thought of one more interesting case:
bool g(const char*);
inline const char* f6(const char* p) {
struct T {
const char* h(const char* p = "world") { // _ZZ2f6Es ?
g(p);
g("hello"); // _ZZN2f61T1hEEs
g("world"); // _ZZN2f61T1hEEs_0
}
};
g(p);
g("hello"); // _ZZ2f6Es_0 ?
g("world"); // _ZZ2f6Es ?
}
Do I have the encodings correct?
More information about the cxx-abi-dev
mailing list