[PATCH] Proposal on how to fix temporary dtors.

Jordan Rose jordan_rose at apple.com
Sun Jun 15 12:11:08 PDT 2014


At first I misread that as

  void testSequencingOfConditionalTempDtors(bool b) {
     (b || check(Dtor())), check(NoReturnDtor());
     clang_analyzer_warnIfReached();  // expected-warning{{REACHABLE}}
   }

which should NOT be reachable. That's probably also a good test case. The comma operator is a real pain.

http://reviews.llvm.org/D3627






More information about the cfe-commits mailing list