[llvm-bugs] [Bug 38485] New: std::any_cast may throw even when type seems to be right

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 8 07:10:58 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38485

            Bug ID: 38485
           Summary: std::any_cast may throw even when type seems to be
                    right
           Product: clang
           Version: 6.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: kicer86 at gmail.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

Created attachment 20656
  --> https://bugs.llvm.org/attachment.cgi?id=20656&action=edit
example

I've prepared a single example which throws std::bad_any_cast.

At first glance it should work (no problems with gcc).

-- 
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/20180808/96e2e6d9/attachment.html>


More information about the llvm-bugs mailing list