<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - "Uncorrected typos!" assertion failure on invalid"
href="http://llvm.org/bugs/show_bug.cgi?id=22250">22250</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>"Uncorrected typos!" assertion failure on invalid
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rafael.espindola@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvmbugs@cs.uiuc.edu, rikka@google.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>$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)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>