This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2] Fix c++/67371 (issues with throw in constexpr)


On 08/29/2015 06:14 AM, Markus Trippelsdorf wrote:
+      if (integer_nonzerop (IF_COND (t)) && !RECUR (THEN_CLAUSE (t), any))
+	      return false;
+      if (integer_zerop (IF_COND (t)) && !RECUR (ELSE_CLAUSE (t), any))
+	      return false;

Actually, I think we can remove the IF_STMT code entirely and move the case label to the COND_EXPR case.

Also, please add a comment explaining why we aren't checking SWITCH_STMT_BODY.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]