public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/37619]  New: overriding Finalize gives: warning: declaration of "Finalize" hides one at line N
@ 2008-09-23  9:51 esigra at gmail dot com
  2008-09-23  9:52 ` [Bug ada/37619] " esigra at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: esigra at gmail dot com @ 2008-09-23  9:51 UTC (permalink / raw)
  To: gcc-bugs

The procedure Finalize is supposed to be overridden to get a constructor for a
type, but doing so gives a warning, eventhough the code explicitly states that
the new Finalize should override the old one. Sample code attached.


-- 
           Summary: overriding Finalize gives: warning: declaration of
                    "Finalize" hides one at line N
           Product: gcc
           Version: 4.2.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: esigra at gmail dot com


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug ada/37619] overriding Finalize gives: warning: declaration of "Finalize" hides one at line N
  2008-09-23  9:51 [Bug ada/37619] New: overriding Finalize gives: warning: declaration of "Finalize" hides one at line N esigra at gmail dot com
  2008-09-23  9:52 ` [Bug ada/37619] " esigra at gmail dot com
@ 2008-09-23  9:52 ` esigra at gmail dot com
  2008-09-23  9:53 ` esigra at gmail dot com
  2 siblings, 0 replies; 5+ messages in thread
From: esigra at gmail dot com @ 2008-09-23  9:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from esigra at gmail dot com  2008-09-23 09:51 -------
Created an attachment (id=16387)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16387&action=view)
specification


-- 


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug ada/37619] overriding Finalize gives: warning: declaration of "Finalize" hides one at line N
  2008-09-23  9:51 [Bug ada/37619] New: overriding Finalize gives: warning: declaration of "Finalize" hides one at line N esigra at gmail dot com
@ 2008-09-23  9:52 ` esigra at gmail dot com
  2008-09-23  9:52 ` esigra at gmail dot com
  2008-09-23  9:53 ` esigra at gmail dot com
  2 siblings, 0 replies; 5+ messages in thread
From: esigra at gmail dot com @ 2008-09-23  9:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from esigra at gmail dot com  2008-09-23 09:51 -------
Created an attachment (id=16386)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16386&action=view)
Makefile


-- 


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug ada/37619] overriding Finalize gives: warning: declaration of "Finalize" hides one at line N
  2008-09-23  9:51 [Bug ada/37619] New: overriding Finalize gives: warning: declaration of "Finalize" hides one at line N esigra at gmail dot com
  2008-09-23  9:52 ` [Bug ada/37619] " esigra at gmail dot com
  2008-09-23  9:52 ` esigra at gmail dot com
@ 2008-09-23  9:53 ` esigra at gmail dot com
  2 siblings, 0 replies; 5+ messages in thread
From: esigra at gmail dot com @ 2008-09-23  9:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from esigra at gmail dot com  2008-09-23 09:52 -------
Created an attachment (id=16388)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16388&action=view)
implementation


-- 


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug ada/37619] overriding Finalize gives: warning: declaration of "Finalize" hides one at line N
       [not found] <bug-37619-4@http.gcc.gnu.org/bugzilla/>
@ 2012-04-04 21:33 ` nicolas.boulenguez at free dot fr
  0 siblings, 0 replies; 5+ messages in thread
From: nicolas.boulenguez at free dot fr @ 2012-04-04 21:33 UTC (permalink / raw)
  To: gcc-bugs

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

nicolas.boulenguez at free dot fr changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nicolas.boulenguez at free
                   |                            |dot fr

--- Comment #4 from nicolas.boulenguez at free dot fr 2012-04-04 21:32:44 UTC ---
Reproduced with 4.6.3 (-gnatwh).
Removing the private separator removes the warning.

package Bug is
   type T1 is tagged null record;
   procedure P (Object : T1);
   type T2 is private;
private
   type T2 is new T1 with null record;
   overriding procedure P (Object : T2);
end Bug;


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-04-04 21:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-23  9:51 [Bug ada/37619] New: overriding Finalize gives: warning: declaration of "Finalize" hides one at line N esigra at gmail dot com
2008-09-23  9:52 ` [Bug ada/37619] " esigra at gmail dot com
2008-09-23  9:52 ` esigra at gmail dot com
2008-09-23  9:53 ` esigra at gmail dot com
     [not found] <bug-37619-4@http.gcc.gnu.org/bugzilla/>
2012-04-04 21:33 ` nicolas.boulenguez at free dot fr

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