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_EXPRandCAST_EXPR


On Thu, 2003-06-19 at 17:40, Giovanni Bajo wrote:
> Mark Mitchell <mark@codesourcery.com> wrote:
> 
> >> Completly agreed.  Those semantics restrictions should be checked only
> >> at full instantiation points.
> >
> > Au contraire!
> >
> > They can be checked whenever we want to check them, and early is good.
> >
> > We need to move more in this direction so that we can do dependency
> > analysis correctly; we've got to stop just saying "we're in a template
> > so put everything off until instantiation time."
> And what do you think of my TREE_CONSTANT patch then? 

I really want to work on this problem myself, but I've been trying to
dutifully fix regressions instead.

The thing we want to do is to still produce a STATIC_CAST_EXPR (that's
actually required for correct mangling), but set its type correctly.

To implement that idea throughout the front end is a big project, sadly.

-- 
Mark Mitchell <mark@codesourcery.com>
CodeSourcery, LLC


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