[LLVMbugs] [Bug 19665] New: cl::opt<uint64_6> results in argument parsing error

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue May 6 12:34:07 PDT 2014


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

            Bug ID: 19665
           Summary: cl::opt<uint64_6> results in argument parsing error
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Support Libraries
          Assignee: unassignedbugs at nondot.org
          Reporter: julian.lettner at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Using 'cl::opt<uint64_6>' instead of 'cl::opt<unsigned long long>' in the
following causes clang to not recognize (and ignore) the command line argument.

static cl::opt<unsigned long long>
Seed("rng-seed", cl::value_desc("seed"),
     cl::desc("Seed for the random number generator"), cl::init(0));

Error:
$ ./clang ../testbed/example.c -o example -frandom-seed=17
$ clang: for the -rng-seed option: Cannot find option named '17'!


http://reviews.llvm.org/D3390?vs=8793&id=9120#3dbe3a44

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140506/e1497e54/attachment.html>


More information about the llvm-bugs mailing list