public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2120] [Ada] Fix location of errors about volatile compatibility
@ 2021-07-07 16:26 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-07-07 16:26 UTC (permalink / raw)
  To: gcc-cvs

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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-07 16:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-07 16:26 [gcc r12-2120] [Ada] Fix location of errors about volatile compatibility Pierre-Marie de Rodat

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).