[llvm-bugs] [Bug 43560] New: clang hang in RecursiveTransformLoop() in SemaExprCXX.cpp

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 4 03:41:37 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=43560

            Bug ID: 43560
           Summary: clang hang in RecursiveTransformLoop() in
                    SemaExprCXX.cpp
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: karl-johan.karlsson at ericsson.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

The following code:

--------------------- foo.c ---------------------
int v_63 ;

void v_2_0(int v_452, int v_454) {}

int v_3_0() {
   for (int v_345 = 0 ; v_63;)
       v_2_0(v_195, v_231);
}
-------------------------------------------------

compiled with:
clang -cc1 -triple x86_64-unknown-unknown -S -O0 -Wall -emit-llvm-bc -o - -x c
foo.c

get stuck and never returns from RecursiveTransformLoop().

Note: both 'v_195' and 'v_231' are undeclared identifiers.
Note: if the loop variable 'v_345' is renamed to say 'i' clang will not hang.

-- 
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/20191004/4b996a34/attachment.html>


More information about the llvm-bugs mailing list