[LLVMbugs] [Bug 20594] New: Assertion failure writing .ast files when class data member initializers contain Block expressions
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Aug 8 08:43:11 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=20594
Bug ID: 20594
Summary: Assertion failure writing .ast files when class data
member initializers contain Block expressions
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: thonermann at coverity.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
The following test cases compile to object code successfully, but fail an
assertion when a .ast file is emitted. The assertion failure has been
reproduced with Clang 3.4 and Clang trunk (r214770).
$ cat t.cpp
struct S {
static void(^bp)();
};
void(^S::bp)() = ^{};
$ cat t-cxx11.cpp
struct S {
void(^bp)() = ^{};
};
$ clang --version
clang version 3.6.0 (trunk 214770)
Target: x86_64-unknown-linux-gnu
Thread model: posix
$ clang -fblocks -c t.cpp
<no error>
$ clang -fblocks -c t.cpp -emit-ast
clang: .../lib/AST/DeclBase.cpp:701: bool
clang::Decl::AccessDeclContextSanity() const: Assertion `Access != AS_none &&
"Access specifier is AS_none inside a record decl"' failed.
...
$ clang -fblocks -std=c++11 -c t-cxx11.cpp
<no error>
$ clang -fblocks -std=c++11 -c t-cxx11.cpp -emit-ast
clang: .../lib/AST/DeclBase.cpp:701: bool
clang::Decl::AccessDeclContextSanity() const: Assertion `Access != AS_none &&
"Access specifier is AS_none inside a record decl"' failed.
...
--
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/20140808/57026e79/attachment.html>
More information about the llvm-bugs
mailing list