March 09, 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=27

           Summary: undefined reference to: __ULLNGDBL
           Product: D
           Version: 0.149
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: link-failure
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: walter@digitalmars.com
        ReportedBy: thomas-dloop@kuehne.cn


# int main(){
#     size_t border = 8;
#
#     for(ulong i = 0; i < border; i++){
#         ulong test = 1;
#         test <<= i;
#         double r = test;
#         ulong result = cast(ulong)r;
#
#         if(result != test){
#             assert(0);
#         }
#     }
#
#     return 0;
# }

Fails to link with "-O".

dmd -O a.d
> gcc a.o -o a -lphobos -lpthread -lm -Xlinker -L/opt/dmd/dmd/lib
> a.o: In function `_Dmain':
> a.d:(.gnu.linkonce.t_Dmain+0x33): undefined reference to `__ULLNGDBL'
> collect2: ld returned 1 exit status
> --- errorlevel 1

test case: http://dstress.kuehne.cn/run/i/ieee_754_int2flt_F.d


-- 

March 21, 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=27


bugzilla@digitalmars.com changed:

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




------- Comment #1 from bugzilla@digitalmars.com  2006-03-20 22:21 -------
Fixed 0.150


--