This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] [PR/13243] Detect more non constant expressions (regression in mainline)
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: "Giovanni Bajo" <giovannibajo at libero dot it>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: 08 Dec 2003 04:03:45 +0100
- Subject: Re: [C++ PATCH] [PR/13243] Detect more non constant expressions (regression in mainline)
- Organization: Integrable Solutions
- References: <013301c3bd37$79a9fbe0$d7bb2997@bagio>
"Giovanni Bajo" <giovannibajo@libero.it> writes:
| expression. Moreover, expressions like INDIRECT_REF and ADDR_EXPR are always
| invalid as constant expressions.
I am a bit nervous about that statement. References get transformed
(from time to time) into INDIRECT_REF, but a reference can be a valid
constant expression. The same is true for an ADDR_EXPR. Did you check
that?
-- Gaby