public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Pierre-Marie de Rodat <pmderodat@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-2120] [Ada] Fix location of errors about volatile compatibility
Date: Wed,  7 Jul 2021 16:26:05 +0000 (GMT)	[thread overview]
Message-ID: <20210707162605.CFE16396E021@sourceware.org> (raw)

https://gcc.gnu.org/g:e5be1e443cef81f458545f5dae1a91860ca1ae71

commit r12-2120-ge5be1e443cef81f458545f5dae1a91860ca1ae71
Author: Piotr Trojanek <trojanek@adacore.com>
Date:   Wed May 19 15:18:54 2021 +0200

    [Ada] Fix location of errors about volatile compatibility
    
    gcc/ada/
    
            * sem_ch12.adb (Check_Shared_Variable_Control_Aspects): Errors
            emitted via Check_Volatility_Compatibility are now emitted at
            Actual, just like other errors emitted by
            Check_Shared_Variable_Control_Aspects.

Diff:
---
 gcc/ada/sem_ch12.adb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/ada/sem_ch12.adb b/gcc/ada/sem_ch12.adb
index 339bb425ae5..1c8f64e215e 100644
--- a/gcc/ada/sem_ch12.adb
+++ b/gcc/ada/sem_ch12.adb
@@ -12825,7 +12825,7 @@ package body Sem_Ch12 is
             Check_Volatility_Compatibility
               (Act_T, A_Gen_T,
                "actual type", "its corresponding formal type",
-               Srcpos_Bearer => Act_T);
+               Srcpos_Bearer => Actual);
          end if;
       end Check_Shared_Variable_Control_Aspects;


                 reply	other threads:[~2021-07-07 16:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20210707162605.CFE16396E021@sourceware.org \
    --to=pmderodat@gcc.gnu.org \
    --cc=gcc-cvs@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).