[llvm-bugs] [Bug 28471] New: Assertion failed: !Unexpanded.empty() && "Unable to find unexpanded parameter packs"

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 8 10:53:38 PDT 2016


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

            Bug ID: 28471
           Summary: Assertion failed: !Unexpanded.empty() && "Unable to
                    find unexpanded parameter packs"
           Product: clang
           Version: 3.8
          Hardware: Other
                OS: other
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jtony at ca.ibm.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

$ clang++ r.c -std=c++11

clang-3.8: warning: treating 'c' input as 'c++' when in C++ mode, this behavior
is deprecated
r.c:11:41: error: pack expansion does not contain any unexpanded parameter
packs
constexpr D ( T t , U ... u ) : V ( u ) ... { }
                                ~~~~~~~ ^
Assertion failed: !Unexpanded.empty() && "Unable to find unexpanded parameter
packs", file:
/home/jtony/clang_syn/clang/llvm-dev.src/tools/clang/lib/Sema/SemaTemplateVariadic.cpp,
line: 290
CEE5207E The signal SIGABRT was received.
clang-3.8: error: unable to execute command: Signal 3
clang-3.8: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.8.0 (tags/RELEASE_380/final)
Target: s390-ibm-zos
Thread model: posix
InstalledDir: /home/jtony/runnable/bin
clang-3.8: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-3.8: error: unable to execute command: Signal 9
clang-3.8: note: diagnostic msg: Error generating preprocessed source(s).
CEE3561S External function get_new_handler__3stdFv was not found in DLL
CELHDCPP.
         From compile unit
/home/jtony/clang_syn/clang/llvm-dev.src/tools/clang/lib/Basic/Diagnostic.cpp
at entry point
         clang::DiagnosticsEngine::~DiagnosticsEngine() at statement 757 at
compile unit offset +000000BC at entry
         offset +000000BC at address 2D018364.

$
$ cat r.c
template <class ...T>
struct D;

template <>
struct D <> {};

template <class T, class ...U>
struct D<T, U...> : D<U...> {
        typedef D<U...> V;
        D() {}
constexpr D ( T t , U ... u ) : V ( u ) ... { }
};
D<int,float> x(0, 0);
[JTONY at ZOSCAN1F ~/workItem/132595]$


This is also reproducible on linux for the debug version clang.

-- 
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/20160708/d8ff4946/attachment-0001.html>


More information about the llvm-bugs mailing list