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: [PATCH] Fix PR c++/23180 (4.1 regression)


Josh Conner <jconner@apple.com> writes:

> 2005-09-08  Josh Conner  <jconner@apple.com>
> 
>          PR c++/23180
>          * expr.c (expand_expr_addr_expr_1): Don't invoke
>          expand_simple_binop if addr and offset are both constants.

What if you just change line 6341 from
      if (modifier == EXPAND_SUM)
to
      if (modifier == EXPAND_SUM || modifier == EXPAND_INITIALIZER)
?

(As an aside, write
    else if
not
    else
    if
)

(As another aside, please make the MIME type of your attachments
text/plain or text/x-patch.  I see you are doing attachments using the
dreaded Apple Mail; I believe that one way to get an acceptable MIME
type is to name the file with an extension of ".txt".)

(Thanks.)

Ian


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