public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/34251]  New: Illegal program not detected - component of type with limited public and nonlimited private view
@ 2007-11-27 21:08 vgodunko at rostel dot ru
  2007-11-27 21:08 ` [Bug ada/34251] " vgodunko at rostel dot ru
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: vgodunko at rostel dot ru @ 2007-11-27 21:08 UTC (permalink / raw)
  To: gcc-bugs

Hello,

I have following output from the compiler for attached testcase:

gcc -c items.adb -gnat05
items.adb:11:21: expected type
"System.Finalization_Implementation.Limited_Record_Controller"
items.adb:11:21: found type
"System.Finalization_Implementation.Record_Controller"

This strange diagnosis seems as result of accept illegal program by the
compiler. Type Item is a non-limited type with component of type with limited
public and non-limited private view, so Item also must be a limited type.


-- 
           Summary: Illegal program not detected - component of type with
                    limited public and nonlimited private view
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: vgodunko at rostel dot ru


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


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

* [Bug ada/34251] Illegal program not detected - component of type with limited public and nonlimited private view
  2007-11-27 21:08 [Bug ada/34251] New: Illegal program not detected - component of type with limited public and nonlimited private view vgodunko at rostel dot ru
@ 2007-11-27 21:08 ` vgodunko at rostel dot ru
  2007-12-04 14:41 ` sam at gcc dot gnu dot org
  2008-08-17 14:31 ` sam at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: vgodunko at rostel dot ru @ 2007-11-27 21:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from vgodunko at rostel dot ru  2007-11-27 21:08 -------
Created an attachment (id=14649)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14649&action=view)
testcase


-- 


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


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

* [Bug ada/34251] Illegal program not detected - component of type with limited public and nonlimited private view
  2007-11-27 21:08 [Bug ada/34251] New: Illegal program not detected - component of type with limited public and nonlimited private view vgodunko at rostel dot ru
  2007-11-27 21:08 ` [Bug ada/34251] " vgodunko at rostel dot ru
@ 2007-12-04 14:41 ` sam at gcc dot gnu dot org
  2008-08-17 14:31 ` sam at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: sam at gcc dot gnu dot org @ 2007-12-04 14:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from sam at gcc dot gnu dot org  2007-12-04 14:40 -------
Confirmed on trunk.

GNAT 4.3.0 20071203 (experimental)
Copyright 1992-2007, Free Software Foundation, Inc.

Compiling: items.adb (source file time stamp: 2007-12-04 14:40:16)

    11.         := new Item'(Kind => ASIS_Context, others => <>)
                            |
        >>> expected type
"System.Finalization_Implementation.Limited_Record_Controller"
        >>> found type "System.Finalization_Implementation.Record_Controller"

 17 lines: 2 errors


-- 

sam at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-12-04 14:40:56
               date|                            |


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


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

* [Bug ada/34251] Illegal program not detected - component of type with limited public and nonlimited private view
  2007-11-27 21:08 [Bug ada/34251] New: Illegal program not detected - component of type with limited public and nonlimited private view vgodunko at rostel dot ru
  2007-11-27 21:08 ` [Bug ada/34251] " vgodunko at rostel dot ru
  2007-12-04 14:41 ` sam at gcc dot gnu dot org
@ 2008-08-17 14:31 ` sam at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: sam at gcc dot gnu dot org @ 2008-08-17 14:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from sam at gcc dot gnu dot org  2008-08-17 14:29 -------
This appears to have been fixed in GCC 4.3.1.


-- 

sam at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sam at gcc dot gnu dot org
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.3.1


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


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

end of thread, other threads:[~2008-08-17 14:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-27 21:08 [Bug ada/34251] New: Illegal program not detected - component of type with limited public and nonlimited private view vgodunko at rostel dot ru
2007-11-27 21:08 ` [Bug ada/34251] " vgodunko at rostel dot ru
2007-12-04 14:41 ` sam at gcc dot gnu dot org
2008-08-17 14:31 ` 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).