This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] (regression) Set TREE_CONSTANT for STATIC_EXPR and CAST_EXPR
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Jason Merrill <jason at redhat dot com>
- Cc: "Giovanni Bajo" <giovannibajo at libero dot it>, <gcc-patches at gcc dot gnu dot org>
- Date: 18 Jun 2003 21:20:30 +0200
- Subject: Re: [C++ PATCH] (regression) Set TREE_CONSTANT for STATIC_EXPR and CAST_EXPR
- Organization: Integrable Solutions
- References: <09f801c335ac$581c69d0$114e2697@bagio><wvlu1an47o9.fsf@prospero.boston.redhat.com>
Jason Merrill <jason@redhat.com> writes:
| Hmm, it seems odd to me that we would be analyzing whether or not an
| expression is a constant-expression when parsing a template, since we can't
| always tell.
Completly agreed. Those semantics restrictions should be checked only
at full instantiation points. That also implies that detecting
whether an in-class initialization of static data-members should be
checked conservatively while parsing template definitions.
-- Gaby