[LLVMbugs] [Bug 22250] New: "Uncorrected typos!" assertion failure on invalid

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jan 16 12:41:52 PST 2015


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

            Bug ID: 22250
           Summary: "Uncorrected typos!" assertion failure on invalid
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu,
                    rikka at google.com
    Classification: Unclassified

$cat test.cpp
template <int x>
int getenv_s(size_t *y, char(&z)) {}
$ ./build/bin/clang -cc1 test.cpp
test.cpp:2:14: error: use of undeclared identifier 'size_t'; did you mean
'sizeof'?
int getenv_s(size_t *y, char(&z)) {}
             ^~~~~~
             sizeof
test.cpp:2:5: warning: variable templates are a C++14 extension
int getenv_s(size_t *y, char(&z)) {}
    ^
test.cpp:2:22: error: use of undeclared identifier 'y'
int getenv_s(size_t *y, char(&z)) {}
                     ^
test.cpp:2:34: error: expected ';' at end of declaration
int getenv_s(size_t *y, char(&z)) {}
                                 ^
                                 ;
test.cpp:2:35: error: expected unqualified-id
int getenv_s(size_t *y, char(&z)) {}
                                  ^
clang: /home/espindola/llvm/llvm/tools/clang/lib/Sema/Sema.cpp:249:
clang::Sema::~Sema(): Assertion `DelayedTypos.empty() && "Uncorrected typos!"'
failed.
#0 0x14f22c8 llvm::sys::PrintStackTrace(_IO_FILE*)
(/home/espindola/llvm/build/bin/clang-3.7+0x14f22c8)
#1 0x14f381b (/home/espindola/llvm/build/bin/clang-3.7+0x14f381b)
#2 0x7f3e59c770d0 __restore_rt (/lib64/libpthread.so.0+0x100d0)
#3 0x7f3e58e9a8c7 __GI_raise (/lib64/libc.so.6+0x348c7)
#4 0x7f3e58e9c52a __GI_abort (/lib64/libc.so.6+0x3652a)
#5 0x7f3e58e9346d __assert_fail_base (/lib64/libc.so.6+0x2d46d)
#6 0x7f3e58e93522 (/lib64/libc.so.6+0x2d522)
#7 0x2083dd5 (/home/espindola/llvm/build/bin/clang-3.7+0x2083dd5)
#8 0x1666706 clang::CompilerInstance::setSema(clang::Sema*)
(/home/espindola/llvm/build/bin/clang-3.7+0x1666706)
#9 0x1699270 clang::FrontendAction::EndSourceFile()
(/home/espindola/llvm/build/bin/clang-3.7+0x1699270)
#10 0x166b324 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/espindola/llvm/build/bin/clang-3.7+0x166b324)
#11 0x171dafa clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/home/espindola/llvm/build/bin/clang-3.7+0x171dafa)
#12 0x6da662 cc1_main(llvm::ArrayRef<char const*>, char const*, void*)
(/home/espindola/llvm/build/bin/clang-3.7+0x6da662)
#13 0x6d92d8 main (/home/espindola/llvm/build/bin/clang-3.7+0x6d92d8)
#14 0x7f3e58e85fe0 __libc_start_main (/lib64/libc.so.6+0x1ffe0)
#15 0x6d60bb _start (/home/espindola/llvm/build/bin/clang-3.7+0x6d60bb)

-- 
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/20150116/e4da1472/attachment.html>


More information about the llvm-bugs mailing list