public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/15803] New: Illegal program not detected, RM 8.3(19)
@ 2004-06-03 19:14 ludovic dot brenta at insalien dot org
  2004-10-12  3:59 ` [Bug ada/15803] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: ludovic dot brenta at insalien dot org @ 2004-06-03 19:14 UTC (permalink / raw)
  To: gcc-bugs

(Debian bug #246385)

package Test_246385 is
   type acc_p is private;
private
   type acc_p is access procedure
      (x: acc_p);  --ERROR: acc_p not visible until end of declaration
end Test_246385;


I expect an error message such as:
test_246385.ads:5:10: "acc_p" not visible until end of declaration, RM 8.3(19)

But the compiler says naught.

-- 
           Summary: Illegal program not detected, RM 8.3(19)
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          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


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


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

* [Bug ada/15803] Illegal program not detected, RM 8.3(19)
  2004-06-03 19:14 [Bug ada/15803] New: Illegal program not detected, RM 8.3(19) ludovic dot brenta at insalien dot org
@ 2004-10-12  3:59 ` pinskia at gcc dot gnu dot org
  2004-10-29 13:23 ` pinskia at gcc dot gnu dot org
  2004-10-29 14:47 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-12  3:59 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid


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


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

* [Bug ada/15803] Illegal program not detected, RM 8.3(19)
  2004-06-03 19:14 [Bug ada/15803] New: Illegal program not detected, RM 8.3(19) ludovic dot brenta at insalien dot org
  2004-10-12  3:59 ` [Bug ada/15803] " pinskia at gcc dot gnu dot org
@ 2004-10-29 13:23 ` pinskia at gcc dot gnu dot org
  2004-10-29 14:47 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-29 13:23 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.0.0


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


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

* [Bug ada/15803] Illegal program not detected, RM 8.3(19)
  2004-06-03 19:14 [Bug ada/15803] New: Illegal program not detected, RM 8.3(19) ludovic dot brenta at insalien dot org
  2004-10-12  3:59 ` [Bug ada/15803] " pinskia at gcc dot gnu dot org
  2004-10-29 13:23 ` pinskia at gcc dot gnu dot org
@ 2004-10-29 14:47 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-29 14:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-29 14:45 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-10-29 14:45:17
               date|                            |


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


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

* [Bug ada/15803] Illegal program not detected, RM 8.3(19)
       [not found] <bug-15803-286@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2007-12-19 16:50 ` charlet at adacore dot com
@ 2007-12-19 20:38 ` sam at gcc dot gnu dot org
  9 siblings, 0 replies; 14+ messages in thread
From: sam at gcc dot gnu dot org @ 2007-12-19 20:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from sam at gcc dot gnu dot org  2007-12-19 20:38 -------
Fixed by Arnaud's commit.


-- 

sam at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.3.0


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


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

* [Bug ada/15803] Illegal program not detected, RM 8.3(19)
       [not found] <bug-15803-286@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2007-12-19 16:46 ` sam at gcc dot gnu dot org
@ 2007-12-19 16:50 ` charlet at adacore dot com
  2007-12-19 20:38 ` sam at gcc dot gnu dot org
  9 siblings, 0 replies; 14+ messages in thread
From: charlet at adacore dot com @ 2007-12-19 16:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from charlet at adacore dot com  2007-12-19 16:50 -------
Subject: Re:  Illegal program not detected, RM 8.3(19)

> for traceability purpose, I would appreciate to be credited in the ChangeLog
> as
> well for this change as I am the one who submitted the patch for sem_ch3.adb
> (Check_For_Premature_Usage procedure and Access_Subprogram_Declaration change)
> that you committed (after some reformatting).

Sure, I understand. Actually it was more than reformatting, we changed the
error message also and a few other things.

But you definitely deserve to get your name as well on this patch, now added.

Arno


-- 


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


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

* [Bug ada/15803] Illegal program not detected, RM 8.3(19)
       [not found] <bug-15803-286@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2007-12-19 16:25 ` charlet at gcc dot gnu dot org
@ 2007-12-19 16:46 ` sam at gcc dot gnu dot org
  2007-12-19 16:50 ` charlet at adacore dot com
  2007-12-19 20:38 ` sam at gcc dot gnu dot org
  9 siblings, 0 replies; 14+ messages in thread
From: sam at gcc dot gnu dot org @ 2007-12-19 16:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from sam at gcc dot gnu dot org  2007-12-19 16:46 -------
Arnaud,

for traceability purpose, I would appreciate to be credited in the ChangeLog as
well for this change as I am the one who submitted the patch for sem_ch3.adb
(Check_For_Premature_Usage procedure and Access_Subprogram_Declaration change)
that you committed (after some reformatting).


-- 


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


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

* [Bug ada/15803] Illegal program not detected, RM 8.3(19)
       [not found] <bug-15803-286@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2007-11-30 21:52 ` sam at gcc dot gnu dot org
@ 2007-12-19 16:25 ` charlet at gcc dot gnu dot org
  2007-12-19 16:46 ` sam at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 14+ messages in thread
From: charlet at gcc dot gnu dot org @ 2007-12-19 16:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from charlet at gcc dot gnu dot org  2007-12-19 16:24 -------
Subject: Bug 15803

Author: charlet
Date: Wed Dec 19 16:24:34 2007
New Revision: 131079

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131079
Log:
2007-12-19  Ed Schonberg  <schonberg@adacore.com>
            Gary Dismukes  <dismukes@adacore.com>

        PR ada/15803, ada/15805
        * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
        illegal access subtypes when there is a constrained partial view.
        (Check_For_Premature_Usage): New procedure inside
        Access_Subprogram_Declaration for checking that an access-to-subprogram
        type doesn't reference its own name within any formal parameters or
        result type (including within nested anonymous access types).
        (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
        (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
        context is an access_to_variable, the expression cannot be an
        access_to_constant.


Modified:
    trunk/gcc/ada/sem_ch3.adb
    trunk/gcc/ada/sem_ch6.adb


-- 


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


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

* [Bug ada/15803] Illegal program not detected, RM 8.3(19)
       [not found] <bug-15803-286@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2007-11-30 21:47 ` sam at gcc dot gnu dot org
@ 2007-11-30 21:52 ` sam at gcc dot gnu dot org
  2007-12-19 16:25 ` charlet at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 14+ messages in thread
From: sam at gcc dot gnu dot org @ 2007-11-30 21:52 UTC (permalink / raw)
  To: gcc-bugs



-- 

sam at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |ASSIGNED
   Last reconfirmed|2007-11-26 21:36:27         |2007-11-30 21:51:58
               date|                            |


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


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

* [Bug ada/15803] Illegal program not detected, RM 8.3(19)
       [not found] <bug-15803-286@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2007-11-30 21:28 ` ludovic at ludovic-brenta dot org
@ 2007-11-30 21:47 ` sam at gcc dot gnu dot org
  2007-11-30 21:52 ` sam at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 14+ messages in thread
From: sam at gcc dot gnu dot org @ 2007-11-30 21:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from sam at gcc dot gnu dot org  2007-11-30 21:47 -------
Thanks for reopening it Ludovic. Yes, I mixed up the PR#, I'll fix the
ChangeLog and close the right one. It's been two times this week, I guess it's
bad for my health to go through so many Ada PR at a time :)


-- 

sam at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sam at gcc dot gnu dot org


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


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

* [Bug ada/15803] Illegal program not detected, RM 8.3(19)
       [not found] <bug-15803-286@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2007-11-28 20:50 ` sam at gcc dot gnu dot org
@ 2007-11-30 21:28 ` ludovic at ludovic-brenta dot org
  2007-11-30 21:47 ` sam at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 14+ messages in thread
From: ludovic at ludovic-brenta dot org @ 2007-11-30 21:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from ludovic at ludovic-brenta dot org  2007-11-30 21:28 -------
Samuel, this PR is not about variant parts.  I think you closed the wrong bug.


-- 

ludovic at ludovic-brenta dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


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


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

* [Bug ada/15803] Illegal program not detected, RM 8.3(19)
       [not found] <bug-15803-286@http.gcc.gnu.org/bugzilla/>
  2007-11-26 21:36 ` sam at gcc dot gnu dot org
  2007-11-28 20:43 ` sam at gcc dot gnu dot org
@ 2007-11-28 20:50 ` sam at gcc dot gnu dot org
  2007-11-30 21:28 ` ludovic at ludovic-brenta dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 14+ messages in thread
From: sam at gcc dot gnu dot org @ 2007-11-28 20:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from sam at gcc dot gnu dot org  2007-11-28 20:50 -------
Fixed in SVN trunk


-- 

sam at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug ada/15803] Illegal program not detected, RM 8.3(19)
       [not found] <bug-15803-286@http.gcc.gnu.org/bugzilla/>
  2007-11-26 21:36 ` sam at gcc dot gnu dot org
@ 2007-11-28 20:43 ` sam at gcc dot gnu dot org
  2007-11-28 20:50 ` sam at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 14+ messages in thread
From: sam at gcc dot gnu dot org @ 2007-11-28 20:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from sam at gcc dot gnu dot org  2007-11-28 20:43 -------
Subject: Bug 15803

Author: sam
Date: Wed Nov 28 20:43:25 2007
New Revision: 130495

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130495
Log:
    gcc/ada/
        PR ada/15803
        * par-ch3.adb (P_Variant_Part): Signal an error when anything other
        than an identifier is used after "case" in a variant_part.

    gcc/testsuite/
        PR ada/15803
        * gnat.dg/specs/variant_part.ads: New test.

Added:
    trunk/gcc/testsuite/gnat.dg/specs/variant_part.ads
Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/par-ch3.adb
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug ada/15803] Illegal program not detected, RM 8.3(19)
       [not found] <bug-15803-286@http.gcc.gnu.org/bugzilla/>
@ 2007-11-26 21:36 ` sam at gcc dot gnu dot org
  2007-11-28 20:43 ` sam at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 14+ messages in thread
From: sam at gcc dot gnu dot org @ 2007-11-26 21:36 UTC (permalink / raw)
  To: gcc-bugs



-- 

sam at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |sam at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-06-14 04:55:13         |2007-11-26 21:36:27
               date|                            |


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


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

end of thread, other threads:[~2007-12-19 20:38 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-03 19:14 [Bug ada/15803] New: Illegal program not detected, RM 8.3(19) ludovic dot brenta at insalien dot org
2004-10-12  3:59 ` [Bug ada/15803] " pinskia at gcc dot gnu dot org
2004-10-29 13:23 ` pinskia at gcc dot gnu dot org
2004-10-29 14:47 ` pinskia at gcc dot gnu dot org
     [not found] <bug-15803-286@http.gcc.gnu.org/bugzilla/>
2007-11-26 21:36 ` sam at gcc dot gnu dot org
2007-11-28 20:43 ` sam at gcc dot gnu dot org
2007-11-28 20:50 ` sam at gcc dot gnu dot org
2007-11-30 21:28 ` ludovic at ludovic-brenta dot org
2007-11-30 21:47 ` sam at gcc dot gnu dot org
2007-11-30 21:52 ` sam at gcc dot gnu dot org
2007-12-19 16:25 ` charlet at gcc dot gnu dot org
2007-12-19 16:46 ` sam at gcc dot gnu dot org
2007-12-19 16:50 ` charlet at adacore dot com
2007-12-19 20:38 ` sam 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).