public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/15600] New: Illegal program not detected (subprogram overloaded with variable)
@ 2004-05-23 23:33 ludovic dot brenta at insalien dot org
  2004-05-24  0:39 ` [Bug ada/15600] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ludovic dot brenta at insalien dot org @ 2004-05-23 23:33 UTC (permalink / raw)
  To: gcc-bugs

procedure P is
   generic
   procedure p1;
   procedure p1 is begin null; end;

   procedure p2 is begin null; end;
   procedure x1 is new p1;
   procedure x2 renames p2;
   x1: integer;        -- ERROR: x1 redefined
   x2: integer;        -- ERROR: x2 redefined
begin
   null;
end P;

$ gnatmake p
gnatgcc -c p.adb
p.adb:9:04: warning: "x1" is never assigned a value
p.adb:10:04: warning: "x2" is never assigned a value
gnatbind -x p.ali
gnatlink p.ali

Compilation finished at Wed Apr 14 19:17:18

-- 
           Summary: Illegal program not detected (subprogram overloaded with
                    variable)
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ludovic dot brenta at insalien dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i696-pc-linux-gnu
  GCC host triplet: i696-pc-linux-gnu
GCC target triplet: i696-pc-linux-gnu


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


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

* [Bug ada/15600] Illegal program not detected (subprogram overloaded with variable)
  2004-05-23 23:33 [Bug ada/15600] New: Illegal program not detected (subprogram overloaded with variable) ludovic dot brenta at insalien dot org
@ 2004-05-24  0:39 ` pinskia at gcc dot gnu dot org
  2004-06-28 14:38 ` cvs-commit at gcc dot gnu dot org
  2004-06-28 14:48 ` charlet at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-24  0:39 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
           Keywords|                            |accepts-invalid


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


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

* [Bug ada/15600] Illegal program not detected (subprogram overloaded with variable)
  2004-05-23 23:33 [Bug ada/15600] New: Illegal program not detected (subprogram overloaded with variable) ludovic dot brenta at insalien dot org
  2004-05-24  0:39 ` [Bug ada/15600] " pinskia at gcc dot gnu dot org
@ 2004-06-28 14:38 ` cvs-commit at gcc dot gnu dot org
  2004-06-28 14:48 ` charlet at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-28 14:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-06-28 14:37 -------
Subject: Bug 15600

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	charlet@gcc.gnu.org	2004-06-28 14:37:06

Modified files:
	gcc/ada        : mlib-tgt-tru64.adb mlib-tgt-aix.adb 
	                 mlib-tgt-irix.adb mlib-tgt-hpux.adb 
	                 mlib-tgt-linux.adb mlib-tgt-solaris.adb 
	                 mlib-tgt-vms-alpha.adb mlib-tgt-vms-ia64.adb 
	                 mlib-tgt-mingw.adb a-strmap.adb a-strmap.ads 
	                 checks.adb clean.adb exp_ch5.adb exp_util.adb 
	                 g-traceb.ads make.adb Makefile.in mlib-prj.adb 
	                 prj.adb prj.ads prj-dect.adb rtsfind.adb 
	                 rtsfind.ads sem_ch10.adb sem_ch12.adb 
	                 sem_util.adb gnat_ugn.texi gnat_rm.texi 
	                 makegpr.adb ChangeLog 

Log message:
	2004-06-28  Robert Dewar  <dewar@gnat.com>
	
	* mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
	mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
	mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
	mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
	a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
	
	* exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
	deal with problem of inefficient slices on machines with strict
	alignment, when the slice is a component of a composite.
	
	* checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
	machines, we need the check there as well.
	
	2004-06-28  Ed Schonberg  <schonberg@gnat.com>
	
	* exp_ch5.adb (Expand_Assign_Array): Use correct condition to
	determine safe copying direction for overlapping slice assignments
	when component is controlled.
	
	* sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
	formal derived type in the actual for a formal package are visible in
	the enclosing instance.
	
	2004-06-28  Ed Schonberg  <schonberg@gnat.com>
	
	PR ada/15600
	* sem_util.adb (Trace_Components): Diagnose properly an illegal
	circularity involving a private type whose completion includes a
	self-referential component.
	(Enter_Name): Use Is_Inherited_Operation to distinguish a source
	renaming or an instantiation from an implicit derived operation.
	
	2004-06-28  Pascal Obry  <obry@gnat.com>
	
	* mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
	DLL.
	(Library_File_Name_For): Idem.
	
	2004-06-28  Matthew Gingell  <gingell@gnat.com>
	
	* g-traceb.ads: Add explanatory note on the format of addresses
	expected by addr2line.
	
	2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
	
	* Makefile.in: Force debugging information on s-tasdeb.adb,
	a-except.adb and s-assert.adb needed by the debugger.
	
	2004-06-28  Vincent Celier  <celier@gnat.com>
	
	* make.adb (Collect_Arguments_And_Compile): Change Flag1 to
	Need_To_Build_Lib.
	(Gnatmake): Ditto.
	
	* mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
	
	* prj.adb: Minor reformatting
	(Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
	
	* prj.ads: Comment updates
	Minor reformatting
	(Project_Data): Change Flag1 to Need_To_Build_Lib.
	Remove Flag2: not used.
	
	* prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
	declaration.
	
	* gnat_ugn.texi: Put a "null;" declaration in one project file example
	
	* gnat_rm.texi: Document Empty declarations "null;".
	
	* makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
	front of the linker options.
	(Link_Foreign): Put the global archives and the libraries in front of
	the linker options.
	
	2004-06-28  Javier Miranda  <miranda@gnat.com>
	
	* rtsfind.adb: (Get_Unit_Name): Fix typo in comment
	(RTU_Loaded): Code cleanup
	(Set_RTU_Loaded): New procedure to register as *loaded* explicitly
	withed predefined units.
	
	* rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
	explicitly withed predefined units.
	Fix typo in comment
	
	* sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
	explicitly withed predefined units.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/mlib-tgt-tru64.adb.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/mlib-tgt-aix.adb.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/mlib-tgt-irix.adb.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/mlib-tgt-hpux.adb.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/mlib-tgt-linux.adb.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/mlib-tgt-solaris.adb.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/mlib-tgt-vms-alpha.adb.diff?cvsroot=gcc&r1=1.3&r2=1.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/mlib-tgt-vms-ia64.adb.diff?cvsroot=gcc&r1=1.3&r2=1.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/mlib-tgt-mingw.adb.diff?cvsroot=gcc&r1=1.3&r2=1.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/a-strmap.adb.diff?cvsroot=gcc&r1=1.5&r2=1.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/a-strmap.ads.diff?cvsroot=gcc&r1=1.5&r2=1.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/checks.adb.diff?cvsroot=gcc&r1=1.23&r2=1.24
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/clean.adb.diff?cvsroot=gcc&r1=1.4&r2=1.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/exp_ch5.adb.diff?cvsroot=gcc&r1=1.20&r2=1.21
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/exp_util.adb.diff?cvsroot=gcc&r1=1.26&r2=1.27
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/g-traceb.ads.diff?cvsroot=gcc&r1=1.7&r2=1.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/make.adb.diff?cvsroot=gcc&r1=1.42&r2=1.43
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/Makefile.in.diff?cvsroot=gcc&r1=1.92&r2=1.93
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/mlib-prj.adb.diff?cvsroot=gcc&r1=1.16&r2=1.17
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/prj.adb.diff?cvsroot=gcc&r1=1.18&r2=1.19
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/prj.ads.diff?cvsroot=gcc&r1=1.21&r2=1.22
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/prj-dect.adb.diff?cvsroot=gcc&r1=1.12&r2=1.13
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/rtsfind.adb.diff?cvsroot=gcc&r1=1.15&r2=1.16
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/rtsfind.ads.diff?cvsroot=gcc&r1=1.15&r2=1.16
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/sem_ch10.adb.diff?cvsroot=gcc&r1=1.26&r2=1.27
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/sem_ch12.adb.diff?cvsroot=gcc&r1=1.40&r2=1.41
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/sem_util.adb.diff?cvsroot=gcc&r1=1.36&r2=1.37
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/gnat_ugn.texi.diff?cvsroot=gcc&r1=1.14&r2=1.15
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/gnat_rm.texi.diff?cvsroot=gcc&r1=1.24&r2=1.25
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/makegpr.adb.diff?cvsroot=gcc&r1=1.6&r2=1.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/ChangeLog.diff?cvsroot=gcc&r1=1.521&r2=1.522



-- 


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


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

* [Bug ada/15600] Illegal program not detected (subprogram overloaded with variable)
  2004-05-23 23:33 [Bug ada/15600] New: Illegal program not detected (subprogram overloaded with variable) ludovic dot brenta at insalien dot org
  2004-05-24  0:39 ` [Bug ada/15600] " pinskia at gcc dot gnu dot org
  2004-06-28 14:38 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-28 14:48 ` charlet at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: charlet at gcc dot gnu dot org @ 2004-06-28 14:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From charlet at gcc dot gnu dot org  2004-06-28 14:38 -------
Fixed in mainline.

Arno

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |3.5.0


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


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

end of thread, other threads:[~2004-06-28 14:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-23 23:33 [Bug ada/15600] New: Illegal program not detected (subprogram overloaded with variable) ludovic dot brenta at insalien dot org
2004-05-24  0:39 ` [Bug ada/15600] " pinskia at gcc dot gnu dot org
2004-06-28 14:38 ` cvs-commit at gcc dot gnu dot org
2004-06-28 14:48 ` charlet at gcc dot gnu dot 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).