[LLVMbugs] [Bug 22860] New: crash instantiating invalid noexcept expression on function template

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 9 17:24:49 PDT 2015


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

            Bug ID: 22860
           Summary: crash instantiating invalid noexcept expression on
                    function template
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nlewycky at google.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Testcase:

template<typename T> void fn1(T) noexcept (invalid);
void caller() { fn1(0); }

triggers a crash inside Sema::SubstExceptionSpec

5  clang           0x00000000028783e5 clang::Stmt::getLocStart() const + 21
6  clang           0x00000000018cc834
7  clang           0x00000000018cc6c2
clang::Sema::SubstExceptionSpec(clang::FunctionDecl*, clang::FunctionProtoType
const*, clang::MultiLevelTemplateArgumentList const&) + 386

-- 
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/30a94788/attachment.html>


More information about the llvm-bugs mailing list