public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/53766] [4.7/4.8 regression] ICE in build_binary_op on Max_Size_In_Storage_Elements with -gnatp
Date: Sat, 15 Dec 2012 18:16:00 -0000	[thread overview]
Message-ID: <bug-53766-4-IaZfcxQDRR@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-53766-4@http.gcc.gnu.org/bugzilla/>


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53766

--- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-12-15 18:16:33 UTC ---
Author: ebotcazou
Date: Sat Dec 15 18:16:28 2012
New Revision: 194522

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194522
Log:
    PR ada/53766
    Backport from mainline

    2012-07-17  Hristian Kirtchev  <kirtchev@adacore.com>

    * exp_attr.adb (Expand_N_Attribute_Reference): Add local variables Attr
    and Conversion_Added.  Add local constant Typ.
    Retrieve the original attribute after the arithmetic check
    machinery has modified the node. Add a conversion to the target
    type when the prefix of attribute Max_Size_In_Storage_Elements
    is a controlled type.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/gnat.dg/controlled7.adb
      - copied unchanged from r194521,
trunk/gcc/testsuite/gnat.dg/controlled7.adb
    branches/gcc-4_7-branch/gcc/testsuite/gnat.dg/controlled7.ads
      - copied unchanged from r194521,
trunk/gcc/testsuite/gnat.dg/controlled7.ads
Modified:
    branches/gcc-4_7-branch/gcc/ada/ChangeLog
    branches/gcc-4_7-branch/gcc/ada/exp_attr.adb
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog


  parent reply	other threads:[~2012-12-15 18:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-25 10:36 [Bug ada/53766] New: ICE in build_binary_op when using pragma Suppress (All_Checks) baldrick at gcc dot gnu.org
2012-06-27 10:39 ` [Bug ada/53766] ICE in build_binary_op on Max_Size_In_Storage_Elements with -gnatp ebotcazou at gcc dot gnu.org
2012-12-15 18:12 ` ebotcazou at gcc dot gnu.org
2012-12-15 18:13 ` [Bug ada/53766] [4.7/4.8 regression] " ebotcazou at gcc dot gnu.org
2012-12-15 18:16 ` ebotcazou at gcc dot gnu.org [this message]
2012-12-15 18:17 ` ebotcazou at gcc dot gnu.org
2012-12-15 20:04 ` baldrick at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-53766-4-IaZfcxQDRR@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).