jlebar marked an inline comment as done. ================ Comment at: clang/lib/Sema/SemaExprCXX.cpp:688 @@ +687,3 @@ + if (getLangOpts().CUDA) + CheckCUDAExceptionExpr(OpLoc, "throw"); + ---------------- tra wrote: > Do you need/want to check returned result? We could, and we could return ExprError here, but I thought it would make sense to do the same thing that we do right above, for -fno-exceptions: Continue parsing as normal, since we in fact *can* understand what the user is trying to do. In theory (certainly for try/catch) this will let us emit better errors elsewhere.
https://reviews.llvm.org/D25036 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits