[LLVMbugs] [Bug 20869] New: cannot request the size of an undeduced or dependent auto type

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Sep 6 08:08:42 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20869

            Bug ID: 20869
           Summary: cannot request the size of an undeduced or dependent
                    auto type
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jeffrey.beu.uz8yz6yl at hotmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 13003
  --> http://llvm.org/bugs/attachment.cgi?id=13003&action=edit
Stderr

>clang++ -c crash.cpp
Assertion failed: !A->getDeducedType().isNull() && "cannot request the size of
an undeduced or dependent auto type", file
..\..\..\..\..\tools\clang\lib\AST\ASTContext.cpp, line 1694

Source code is in attachment.
I used a debug build of clang and llvm.

Basically made a typo in
template<class F, class... A> auto make_block(F f, A... a) ->
std::function<decltype(CRASHCLANG(a...))(A...)>

where CRASHCLANG wasn't declared.

I did't use std::function in source code provided to exclude preprocessing
headers.

-- 
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/20140906/1d74605a/attachment.html>


More information about the llvm-bugs mailing list