Thread overview
[Issue 6502] New: failing with -release -inline -noboundscheck
Aug 16, 2011
Walter Bright
Aug 16, 2011
Jonathan M Davis
Sep 15, 2011
Peter Alexander
Oct 02, 2011
Rainer Schuetze
Oct 18, 2011
Jonathan M Davis
Oct 18, 2011
Walter Bright
August 16, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6502

           Summary: failing with -release -inline -noboundscheck
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: bugzilla@digitalmars.com


--- Comment #0 from Walter Bright <bugzilla@digitalmars.com> 2011-08-15 21:10:03 PDT ---
The following program fails when compiled with -release -inline -noboundscheck
-------------
import std.process;

void main()
{
}
---------------

with the message:

\cbx\mars\druntime\import\core\time.di(253): Error: template
core.time.TickDuration.to(string units,
T) if ((units == "seconds" || units == "msecs" || units == "usecs" || units ==
"hnsecs" || units ==
"nsecs") && (__traits(isIntegral,T) && T.sizeof >= 4)) does not match any
function template declarat
ion
\cbx\mars\druntime\import\core\time.di(253): Error: template
core.time.TickDuration.to(string units,
T) if ((units == "seconds" || units == "msecs" || units == "usecs" || units ==
"hnsecs" || units ==
"nsecs") && (__traits(isIntegral,T) && T.sizeof >= 4)) cannot deduce template
function from argument
 types !("seconds",long)()

It is unclear if it is a druntime problem or a dmd bug.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 16, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6502


Jonathan M Davis <jmdavisProg@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg@gmx.com


--- Comment #1 from Jonathan M Davis <jmdavisProg@gmx.com> 2011-08-15 21:20:15 PDT ---
There may very well be a druntime bug here, but I fail to see how something compiling with one set of flags and failing to compile with another could be anything other than a compiler bug (save for flags such as version which affect conditional compilation).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 15, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6502


Peter Alexander <peter.alexander.au@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |peter.alexander.au@gmail.co
                   |                            |m


--- Comment #2 from Peter Alexander <peter.alexander.au@gmail.com> 2011-09-15 03:01:43 PDT ---
*** Issue 6671 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 02, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6502


Rainer Schuetze <r.sagitario@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario@gmx.de


--- Comment #3 from Rainer Schuetze <r.sagitario@gmx.de> 2011-10-02 03:02:57 PDT ---
bug 6488 seems very much the same issue. Please see my recent comment there. Summary: boils down to di file generation converting function templates to eponymous templates, that have problems matching template arguments when qualifiers are involved.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 18, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6502


Jonathan M Davis <jmdavisProg@gmx.com> changed:

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


--- Comment #4 from Jonathan M Davis <jmdavisProg@gmx.com> 2011-10-18 08:14:08 PDT ---
*** Issue 6824 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 18, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6502


Walter Bright <bugzilla@digitalmars.com> changed:

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


--- Comment #5 from Walter Bright <bugzilla@digitalmars.com> 2011-10-18 10:18:19 PDT ---
*** This issue has been marked as a duplicate of issue 6488 ***

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