Thread overview
[Bug 163] New: Internal compiler error with nested functions
May 30, 2006
d-bugmail
May 30, 2006
d-bugmail
Jun 03, 2006
d-bugmail
Jun 03, 2006
d-bugmail
Jun 03, 2006
d-bugmail
May 30, 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=163

           Summary: Internal compiler error with nested functions
           Product: GDC
           Version: 0.18
          Platform: Macintosh
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: glue layer
        AssignedTo: dvdfrdmn@users.sf.net
        ReportedBy: csantander619@gmail.com


//----------------
class Foo
{
        void bar (void * src)
        {
                void baz (void function (void *, uint) xyz)
                {
                        uint foo (void [] dst)
                        {
                                uint len = dst.length;
                                dst [0 .. len] = src [0 .. len];
                                xyz (dst, len);
                                return len;
                        }
                }
        }
}
//----------------

$ gdc -c -g test.d
test.d: En la función ‘foo’:
test.d:13: error interno del compilador: Violación de segmento
Por favor envíe un reporte completo de bichos,
con el código preprocesado si es apropiado.
Vea <URL:http://gcc.gnu.org/bugs.html> para más instrucciones.


-- 

May 30, 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=163





------- Comment #1 from csantander619@gmail.com  2006-05-30 06:53 -------
*** Bug 162 has been marked as a duplicate of this bug. ***


-- 

June 03, 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=163


dvdfrdmn@users.sf.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dvdfrdmn@users.sf.net




------- Comment #2 from dvdfrdmn@users.sf.net  2006-06-03 08:51 -------
I cannot reproduce this.  Which version of GCC did you build against?  Was it a clean build?


-- 

June 03, 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=163





------- Comment #3 from dvdfrdmn@users.sf.net  2006-06-03 09:19 -------
I didn't see this was PowerPC Linux.  Can reproduce now.


-- 

June 03, 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=163


dvdfrdmn@users.sf.net changed:

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




------- Comment #4 from dvdfrdmn@users.sf.net  2006-06-03 14:04 -------
Fixed in SF subversion.  For incremental builds, re-apply patch-gcc-4.0.x.


--