public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/53737] New: Assert_Failure sinfo.adb:1066 on a generic package with an package as parameter (Ada Util)
@ 2012-06-20 21:33 Stephane.Carrez at gmail dot com
  2012-06-20 21:35 ` [Bug ada/53737] " Stephane.Carrez at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Stephane.Carrez at gmail dot com @ 2012-06-20 21:33 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53737
           Summary: Assert_Failure sinfo.adb:1066 on a generic package
                    with an package as parameter (Ada Util)
    Classification: Unclassified
           Product: gcc
           Version: 4.7.1
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: ada
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: Stephane.Carrez@gmail.com


GCC 4.7.1 fails to compile a generic package that compiled correctly
with GCC 4.4.3, 4.5.4 and 4.6.3.  FYI, the generic package comes
from Ada Utility Library.

The generic package uses two packages as parameter:

generic
   with package Vectors is
     new Ada.Containers.Vectors (<>);
   with package Element_Mapper is
     new Record_Mapper (Element_Type => Vectors.Element_Type,
                        others => <>);
package Util.Serialize.Mappers.Vector_Mapper is


and the 'Record_Mapper' is itself a generic package defined with:

generic
   type Element_Type is limited private;
   type Element_Type_Access is access all Element_Type;
   type Fields is (<>);
   with procedure Set_Member (Into   : in out Element_Type;
                              Field  : in Fields;
                              Value  : in Util.Beans.Objects.Object);
package Util.Serialize.Mappers.Record_Mapper is


The issue seems to be in sem_ch12.adb:1460 in Analyze_Associations
when it is checking a N_Formal_Type_Declaration.
I guess this could be the Element_Type_Access but I have no clear fact
about that (I stopped there my investigations).


+===========================GNAT BUG DETECTED==============================+
| 4.7.1 (i686-pc-linux-gnu) Assert_Failure sinfo.adb:1066                  |
| Error detected at util-serialize-mappers-vector_mapper.ads:29:4          |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.            |
| Use a subject line meaningful to you and us to track the bug.            |
| Include the entire contents of this bug box in the report.               |
| Include the exact gcc or gnatmake command that you entered.              |
| Also include sources listed below in gnatchop format                     |
| (concatenated together with no headers between files).                   |
+==========================================================================+

Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.
Consider also -gnatd.n switch (see debug.adb).

util-serialize-mappers-vector_mapper.adb
util-serialize-mappers-vector_mapper.ads
util-serialize-mappers.ads
util-serialize.ads
util.ads
util-beans.ads
util-beans-objects.ads
util-concurrent.ads
util-concurrent-counters.ads
util-beans-basic.ads
util-log.ads
util-log-loggers.ads
util-log-appenders.ads
util-properties.ads
util-serialize-contexts.ads
util-serialize-mappers-record_mapper.ads
util-serialize-io.ads
util-streams.ads
util-streams-buffered.ads
util-stacks.ads
util-concurrent-counters.adb

compilation abandoned
Exit 1


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

* [Bug ada/53737] Assert_Failure sinfo.adb:1066 on a generic package with an package as parameter (Ada Util)
  2012-06-20 21:33 [Bug ada/53737] New: Assert_Failure sinfo.adb:1066 on a generic package with an package as parameter (Ada Util) Stephane.Carrez at gmail dot com
@ 2012-06-20 21:35 ` Stephane.Carrez at gmail dot com
  2012-12-16 10:50 ` [Bug ada/53737] [4.7/4.8 regression] Assert_Failure on a generic package with a package as parameter ebotcazou at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Stephane.Carrez at gmail dot com @ 2012-06-20 21:35 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Stephane Carrez <Stephane.Carrez at gmail dot com> 2012-06-20 21:35:02 UTC ---
Created attachment 27670
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27670
Files to reproduce the bug

To reproduce the bug:

gnatchop gcc-bug.txt
gcc -c util-serialize-mappers-vector_mapper.adb


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

* [Bug ada/53737] [4.7/4.8 regression] Assert_Failure on a generic package with a package as parameter
  2012-06-20 21:33 [Bug ada/53737] New: Assert_Failure sinfo.adb:1066 on a generic package with an package as parameter (Ada Util) Stephane.Carrez at gmail dot com
  2012-06-20 21:35 ` [Bug ada/53737] " Stephane.Carrez at gmail dot com
@ 2012-12-16 10:50 ` ebotcazou at gcc dot gnu.org
  2012-12-17 14:48 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2012-12-16 10:50 UTC (permalink / raw)
  To: gcc-bugs


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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-12-16
                 CC|                            |ebotcazou at gcc dot
                   |                            |gnu.org
   Target Milestone|---                         |4.7.3
            Summary|Assert_Failure              |[4.7/4.8 regression]
                   |sinfo.adb:1066 on a generic |Assert_Failure on a generic
                   |package with a package as   |package with a package as
                   |parameter (Ada Util)        |parameter
     Ever Confirmed|0                           |1

--- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-12-16 10:50:09 UTC ---
Present on 4.7 branch and mainline.


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

* [Bug ada/53737] [4.7/4.8 regression] Assert_Failure on a generic package with a package as parameter
  2012-06-20 21:33 [Bug ada/53737] New: Assert_Failure sinfo.adb:1066 on a generic package with an package as parameter (Ada Util) Stephane.Carrez at gmail dot com
  2012-06-20 21:35 ` [Bug ada/53737] " Stephane.Carrez at gmail dot com
  2012-12-16 10:50 ` [Bug ada/53737] [4.7/4.8 regression] Assert_Failure on a generic package with a package as parameter ebotcazou at gcc dot gnu.org
@ 2012-12-17 14:48 ` jakub at gcc dot gnu.org
  2012-12-21 22:32 ` ebotcazou at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-12-17 14:48 UTC (permalink / raw)
  To: gcc-bugs


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
                 CC|                            |jakub at gcc dot gnu.org


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

* [Bug ada/53737] [4.7/4.8 regression] Assert_Failure on a generic package with a package as parameter
  2012-06-20 21:33 [Bug ada/53737] New: Assert_Failure sinfo.adb:1066 on a generic package with an package as parameter (Ada Util) Stephane.Carrez at gmail dot com
                   ` (2 preceding siblings ...)
  2012-12-17 14:48 ` jakub at gcc dot gnu.org
@ 2012-12-21 22:32 ` ebotcazou at gcc dot gnu.org
  2012-12-21 22:34 ` ebotcazou at gcc dot gnu.org
  2012-12-21 22:34 ` ebotcazou at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2012-12-21 22:32 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-12-21 22:31:46 UTC ---
Author: ebotcazou
Date: Fri Dec 21 22:31:42 2012
New Revision: 194687

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194687
Log:
    PR ada/53737
    * sem_ch12.adb (Analyze_Associations): Do not check the legality of
    actuals for RACW types if this is an internal instantiation for a formal
    package with defaulted parameters.

Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/sem_ch12.adb


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

* [Bug ada/53737] [4.7/4.8 regression] Assert_Failure on a generic package with a package as parameter
  2012-06-20 21:33 [Bug ada/53737] New: Assert_Failure sinfo.adb:1066 on a generic package with an package as parameter (Ada Util) Stephane.Carrez at gmail dot com
                   ` (3 preceding siblings ...)
  2012-12-21 22:32 ` ebotcazou at gcc dot gnu.org
@ 2012-12-21 22:34 ` ebotcazou at gcc dot gnu.org
  2012-12-21 22:34 ` ebotcazou at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2012-12-21 22:34 UTC (permalink / raw)
  To: gcc-bugs


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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

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

--- Comment #5 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-12-21 22:34:28 UTC ---
Thanks for reporting the problem.


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

* [Bug ada/53737] [4.7/4.8 regression] Assert_Failure on a generic package with a package as parameter
  2012-06-20 21:33 [Bug ada/53737] New: Assert_Failure sinfo.adb:1066 on a generic package with an package as parameter (Ada Util) Stephane.Carrez at gmail dot com
                   ` (4 preceding siblings ...)
  2012-12-21 22:34 ` ebotcazou at gcc dot gnu.org
@ 2012-12-21 22:34 ` ebotcazou at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2012-12-21 22:34 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-12-21 22:33:42 UTC ---
Author: ebotcazou
Date: Fri Dec 21 22:33:36 2012
New Revision: 194688

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194688
Log:
    PR ada/53737
    * sem_ch12.adb (Analyze_Associations): Do not check the legality of
    actuals for RACW types if this is an internal instantiation for a formal
    package with defaulted parameters.

Modified:
    branches/gcc-4_7-branch/gcc/ada/ChangeLog
    branches/gcc-4_7-branch/gcc/ada/sem_ch12.adb


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

end of thread, other threads:[~2012-12-21 22:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-20 21:33 [Bug ada/53737] New: Assert_Failure sinfo.adb:1066 on a generic package with an package as parameter (Ada Util) Stephane.Carrez at gmail dot com
2012-06-20 21:35 ` [Bug ada/53737] " Stephane.Carrez at gmail dot com
2012-12-16 10:50 ` [Bug ada/53737] [4.7/4.8 regression] Assert_Failure on a generic package with a package as parameter ebotcazou at gcc dot gnu.org
2012-12-17 14:48 ` jakub at gcc dot gnu.org
2012-12-21 22:32 ` ebotcazou at gcc dot gnu.org
2012-12-21 22:34 ` ebotcazou at gcc dot gnu.org
2012-12-21 22:34 ` 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).