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]

Re: [PATCH] variable size arrays in nested functions


    > How could it be?  It seems to me to be semantically critical when you
    > need the result of expression that have side-effects.

    By using an unnamed VAR_DECL.

But then it's no longer an expression, but a sequence of statements.

    > Sure, you can use variables for the bounds, but SAVE_EXPR is just a
    > shorthand for that and avoids the scoping issues inherent with such
    > variables.
    
    Trading scoping issues for the re-evaluation horrors we have with
    SAVE_EXPR and UNSAVE_EXPR is not a win, IMO.

I never did understand UNSAVE_EXPR.  What was the motivation for that?


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