[llvm-bugs] [Bug 31500] New: llvm/tools/clang/lib/AST/Decl.cpp:2426: clang::Expr* clang::ParmVarDecl::getDefaultArg(): Assertion `!hasUninstantiatedDefaultArg() && "Default argument is not yet instantiated!"' failed

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Dec 30 17:07:53 PST 2016


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

            Bug ID: 31500
           Summary: llvm/tools/clang/lib/AST/Decl.cpp:2426: clang::Expr*
                    clang::ParmVarDecl::getDefaultArg(): Assertion
                    `!hasUninstantiatedDefaultArg() && "Default argument
                    is not yet instantiated!"' failed
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: compnerd at compnerd.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

// RUN: %clang_cc1 -triple i686--windows-msvc -fdeclspec -emit-llvm -o
/dev/null -x c++ %s

template <class> struct collate {
  collate(__SIZE_TYPE__ __refs = 0) {}
};

extern template class collate<char>;

template class __declspec(dllexport) collate<char>;

-- 
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/20161231/5bff1969/attachment-0001.html>


More information about the llvm-bugs mailing list