Compiling GCC With a C++ Compiler (g++)
Gabriel Dos Reis
gdr@cs.tamu.edu
Thu Oct 14 18:48:00 GMT 2004
On Thu, 14 Oct 2004, Andreas Schwab wrote:
| Gabriel Dos Reis <gdr@cs.tamu.edu> writes:
|
| > | What about this function: is it valid, conformant C?
| > |
| > | void fubar (const char *x)
| > | {
| > | *(char *)x = '?';
| > | }
| >
| > It is valid C and C++, if only if the object pointed to by x is const.
^
Obviously, there is a missing "not" there
| No, it isn't.
-- Gaby
More information about the Gcc
mailing list