This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Compiling GCC With a C++ Compiler (g++)
Andreas Schwab <schwab@suse.de> writes:
| Gabriel Dos Reis <gdr@cs.tamu.edu> writes:
|
| > Phil Edwards <phil@codesourcery.com> writes:
| >
| > [...]
| >
| > | particular place. Since member init-lists aren't available for STRING_CST,
| > | we have to cast away the const in build_string
| >
| > which is undefined behaviour by C rules (and C++ too).
|
| Only if the underlying object is really read-only, which it isn't.
I'm talking about the subobject for the string. It does not matter
whether the whole object is not declared with const, the point at
issue here is the field that is declared const.
-- Gaby