Go to file
Logan Chien af24ad940d Fix diagnostics for C-style cast to function type.
If the C-style type cast is applied to the overloaded
function and the destination type is function type,
then Clang will crash with assertion failure.  For example,

    void foo(int);
    void foo(int, int);
    void bar() {
        typedef void (ft)(int);
        ft p = (ft)foo;
    }

In this case, the overloaded function foo will be cast to
a function type, which should be considered as an error.
But, unfortunately, since the function resolution is using
canonical type, the matched function will be returned, and
result in SEGV.

This patch fixes this issue by removing the assertion and
add some error diagnostics as the one in static_cast.

llvm-svn: 206133
2014-04-13 16:08:24 +00:00
clang Fix diagnostics for C-style cast to function type. 2014-04-13 16:08:24 +00:00
clang-tools-extra test/clang-tidy/redundant-smartptr-get*.cpp: Both of them really require shell. 2014-04-10 03:17:22 +00:00
compiler-rt tsan: serialize report printing in standalone deadlock detector 2014-04-11 17:54:27 +00:00
debuginfo-tests relax testcase for LLDB output format compatibility. 2014-03-19 23:06:18 +00:00
libclc Introduce M_LOG2E_F and M_LOG2E 2014-03-28 21:19:03 +00:00
libcxx Not everyone uses bash, so fix test syntax. 2014-04-12 21:12:55 +00:00
libcxxabi Properly sign extend sdata2/4 in unwinder. Patch by Patrick Wildt 2014-04-12 23:22:52 +00:00
lld Add missing includes. 2014-04-12 16:32:42 +00:00
lldb Fixed SBThread.GetStopReasonDataAtIndex() to correctly return breakpoint location ID. 2014-04-11 17:27:02 +00:00
llvm Fix instruction debug info location during legalization 2014-04-13 06:39:55 +00:00
openmp Add the offload directory which contains the code needed to support 2014-04-09 15:40:23 +00:00
polly Dependences: Refine the compute out facility 2014-04-12 11:39:28 +00:00