www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 163] New: Internal compiler error with nested functions

reply d-bugmail puremagic.com writes:
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
next sibling parent d-bugmail puremagic.com writes:
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. ***


-- 
May 30 2006
prev sibling next sibling parent d-bugmail puremagic.com writes:
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?


-- 
Jun 03 2006
prev sibling next sibling parent d-bugmail puremagic.com writes:
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.


-- 
Jun 03 2006
prev sibling parent d-bugmail puremagic.com writes:
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.


-- 
Jun 03 2006