[LLVMbugs] [Bug 17483] New: Assertion when attempting to build a CFG for a function containing a goto statement with -fms-compatibility

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Oct 4 19:32:03 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=17483

            Bug ID: 17483
           Summary: Assertion when attempting to build a CFG for a
                    function containing a goto statement with
                    -fms-compatibility
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: rtrieu at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Assertion failure:
llvm/tools/clang/lib/Analysis/CFG.cpp:198: int
{anonymous}::LocalScope::const_iterator::distance({anonymous}::LocalScope::const_iterator):
Assertion `F != const_iterator() && "L iterator is not reachable from F
iterator."' failed.

Command line:
clang -cc1 goto.cc -fsyntax-only -fms-compatibility -analyze
-analyzer-checker=debug.DumpCFG

goto.cc:
struct Y {
  ~Y();
};

void jump_over_var_with_dtor() {
  goto end;
  Y y; 
  end:
  return;
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131005/62168558/attachment.html>


More information about the llvm-bugs mailing list