#include "stdio.h" void test(const char *&pString) {} int main(int argc, char* argv[]) { char *x = "test"; test(x); return 0; } returns the error: test2.cpp: In function `int main (int, char **)': test2.cpp:6: could not convert `x' to `const char *&' test2.cpp:2: in passing argument 1 of `test (const char *&)' kgcc and other compilers work fine.
Created attachment 3944 [details] sample source
There is no implicit conversion from char * to const char *&, this testcase is really invalid. Like the previous testcase, this is invalid already in g++ 2.95.