[llvm-bugs] [Bug 24856] New: clang crashes on in-class member initializer containing ill-formed static_cast

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 16 22:25:46 PDT 2015


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

            Bug ID: 24856
           Summary: clang crashes on in-class member initializer
                    containing ill-formed static_cast
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: david.majnemer at gmail.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

consider:
struct S {
  typedef void (S::*Ty)();
  void f();
  void f(int);
  Ty x = static_cast<Ty &>(&S::f);
} s;

results in clang crashing:
shouldn't see dependent / unresolved nodes here  
UNREACHABLE executed at clang/lib/AST/Expr.cpp:2946!

-- 
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/20150917/1fe1f347/attachment-0001.html>


More information about the llvm-bugs mailing list