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: unassignedclangb...@nondot.org
          Reporter: david.majne...@gmail.com
                CC: dgre...@apple.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to