[LLVMbugs] [Bug 22870] New: UNREACHABLE executed in ItaniumMangle.cpp

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Mar 10 11:48:51 PDT 2015


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

            Bug ID: 22870
           Summary: UNREACHABLE executed in ItaniumMangle.cpp
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: Yunzhong_Gao at playstation.sony.com
                CC: llvmbugs at cs.uiuc.edu, richard-llvm at metafoo.co.uk
    Classification: Unclassified

It looks like after r228274, the following test case hits an unreachable.

$ clang -S -std=c++11 -emit-llvm -o - test.cpp

/* test.cpp */
struct Q { int a, b, c; };
struct QQ { struct Q q; };

template<class T> decltype(QQ{ .q.b = 10 }, T()) foo(T t) {}

int main() {
  foo(5);
  return 0;
}
/* end test.cpp */

It seems that we are trying to mangle the syntactic form of an InitListExpr and
the enclosed DesignatedInitExpr is causing trouble.

Can someone kindly take a look?

-- 
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/20150310/81a97a09/attachment.html>


More information about the llvm-bugs mailing list