This is the mail archive of the gcc-patches@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: [C++ PATCH] (regression) Set TREE_CONSTANT for STATIC_EXPR and CAST_EXPR


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


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