public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/113352] New: error: invalid prefix in selected component with overloaded subprogram.
@ 2024-01-12 11:20 p.p11 at orange dot fr
2024-01-19 12:00 ` [Bug ada/113352] " ebotcazou at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: p.p11 at orange dot fr @ 2024-01-12 11:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113352
Bug ID: 113352
Summary: error: invalid prefix in selected component with
overloaded subprogram.
Product: gcc
Version: 13.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ada
Assignee: unassigned at gcc dot gnu.org
Reporter: p.p11 at orange dot fr
CC: dkm at gcc dot gnu.org
Target Milestone: ---
Created attachment 57051
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57051&action=edit
Reproducer.
Let's define:
package Loggings is
type Logging is tagged limited private;
type Logging_Class is access all Logging'Class;
function Handler return Logging_Class;
procedure Handler (To : Logging_Class);
procedure Log (Handler : Logging; Msg : String);
private
...
end Loggings;
and declare:
procedure My_Log_4 (Msg : String) is
begin
Loggings.Handler.Log (Msg);
end;
Result:
% gcc -gnatv -c 2024/test_20240110_func_prefix.adb
GNAT 13.2.0
Copyright 1992-2023, Free Software Foundation, Inc.
Compiling: 2024/test_20240110_func_prefix.adb
Source file time stamp: 2024-01-12 11:17:13
Compiled at: 2024-01-12 12:17:34
32. Loggings.Handler.Log (Msg);
|
>>> error: invalid prefix in selected component "Handler"
Expected result:
Function Handler should be selected instead of procedure Handler.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug ada/113352] error: invalid prefix in selected component with overloaded subprogram
2024-01-12 11:20 [Bug ada/113352] New: error: invalid prefix in selected component with overloaded subprogram p.p11 at orange dot fr
@ 2024-01-19 12:00 ` ebotcazou at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2024-01-19 12:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113352
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
CC| |ebotcazou at gcc dot gnu.org
Summary|error: invalid prefix in |error: invalid prefix in
|selected component with |selected component with
|overloaded subprogram. |overloaded subprogram
Last reconfirmed| |2024-01-19
Status|UNCONFIRMED |NEW
--- Comment #1 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Unexpected indeed.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-19 12:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-12 11:20 [Bug ada/113352] New: error: invalid prefix in selected component with overloaded subprogram p.p11 at orange dot fr
2024-01-19 12:00 ` [Bug ada/113352] " ebotcazou at gcc dot gnu.org
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).