[LLVMbugs] [Bug 12436] New: Failing tests in numerics/rand: A failed assertion, and compilation failures

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 2 03:19:16 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=12436

             Bug #: 12436
           Summary: Failing tests in numerics/rand: A failed assertion,
                    and compilation failures
           Product: libc++
           Version: unspecified
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
        AssignedTo: hhinnant at apple.com
        ReportedBy: jonathan.sauer at gmx.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8312
  --> http://llvm.org/bugs/attachment.cgi?id=8312
Complete log of test run

The libc++ r153859 tests in numerics/rand, when compiled with clang r153864,
result in one failed assertion and four compilation failures (full log
attached):

[...]
Assertion failed: (p[0] == 1), function main, file ctor_default.pass.cpp, line
28.
./../testit: line 61: 70200 Abort trap              ./$TEST_EXE
/Users/rynnsauer/LLVM/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.discrete/ctor_default.pass.cpp
failed at run time

[...]

ctor_init_func.pass.cpp:33:11: error: no matching constructor for
initialization of 'D' (aka
      'piecewise_constant_distribution<>')
        D d({}, f);
          ^ ~~~~~
/usr/include/c++/v1/random:6016:9: note: candidate constructor [with
_UnaryOperation = double
      (*)(double)] not viable: cannot convert initializer list argument to
      'initializer_list<result_type>'
        piecewise_constant_distribution(initializer_list<result_type> __bl,
        ^

[...]

[three more similar bugs related to the use of initializer_list]

(the initializer_list bugs are possibly due to a bug in clang)

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list