On Nov 27, 2007, at 8:28 PM, Sanghyeon Seo wrote:

> $ clang -ast-print test/Sema/typedef-prototype.c
>
> clang: /home/tinuviel/build/llvm/include/llvm/Support/Casting.h:199:
> typename llvm::cast_retty<To, From>::ret_type llvm::cast(const Y&)
> [with X = clang::FunctionType, Y = clang::QualType]: Assertion
> `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
>
> Am I correct in that "unary_int_func add_one;" should be printed, not
> "int add_one(int);"?

Yep, that would be preferable.

-Chris
_______________________________________________
cfe-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

Reply via email to