www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3244] New: with -inline dmd sometime instantiates nested functions that then cannot be accessed

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3244

           Summary: with -inline dmd sometime instantiates nested
                    functions that then cannot be accessed
           Product: D
           Version: 1.046
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: fawzi gmx.ch


when compiling blip ( git clone git://github.com/fawzi/blip.git ) on mac with

make EXTRA_LIBS="-L-ltango-user-dmd -L-framework -LAccelerate" using dmd 1.046
and latest tango trunk (svn co http://svn.dsource.org/projects/tango/trunk
tango; cd tango/build; ./build.sh) and a dmd.conf that accesses tango and not
phobos

I get
{{{
/Users/fawzi/Documents/d-dev/blipClean/blip/narray/BasicOps.d(361): Error:
function blip.narray.BasicOps.norm2!(cdouble,2,real).norm2.reduceAllGen!(void
delegate(ref real x, cdouble y)
{
x += cast(real)cast(double)y * cast(real)cast(double)y +
cast(real)cast(idouble)y * cast(real)cast(idouble)y;
}
,void delegate(ref real x, real y)
{
x += y;
}
,real delegate(real x)
{
return x;
}
,cdouble,2,real).reduceAllGen is a nested function and cannot be accessed from
testSvd
}}}

it seem that inline makes the function nested and inaccessible.

Unfortunately smaller examples don't seem

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 11 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3244


bearophile_hugs eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs eml.cc


--- Comment #1 from bearophile_hugs eml.cc 2010-07-08 04:41:34 PDT ---
This bug report, unless improved significantly (creating a tiny reproducible
test case), can be closed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 08 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3244


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug yahoo.com.au
         Resolution|                            |DUPLICATE


--- Comment #2 from Don <clugdbug yahoo.com.au> 2010-09-13 23:55:41 PDT ---
This has no test case, but has the same behaviour as bug 2474. Therefore, I'm
marking it as a duplicate.

*** This issue has been marked as a duplicate of issue 2474 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 13 2010