This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compiling GCC With a C++ Compiler (g++)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]