[cfe-commits] r55767 - in /cfe/trunk: include/clang/AST/ASTContext.h include/clang/Basic/DiagnosticKinds.def lib/AST/ASTContext.cpp lib/Sema/Sema.h lib/Sema/SemaExpr.cpp

Eli Friedman eli.friedman at gmail.com
Fri Sep 5 15:32:01 PDT 2008

On Fri, Sep 5, 2008 at 3:22 PM, steve naroff <snaroff at apple.com> wrote:
>> You need to modify ASTContext::mergeTypes to handle block pointer
>> types; otherwise, I think it'll explode with an assertion.  Adding a
>> "case Type::BlockPointer: return false;" should be sufficient, unless
>> I'm misreading typesAreBlockCompatible.
> I didn't do this and I'm not seeing any assertions.

Did you try this testcase?
int a() {void (^b)(void),(^c)(int); return &b == &c;}


More information about the cfe-commits mailing list