[llvm-bugs] [Bug 47268] New: Assertion failed: (!D->isInvalidDecl() && "Cannot get layout of invalid decl!"), function getASTRecordLayout, file /usr/src/contrib/llvm-project/clang/lib/AST/RecordLayoutBuilder.cpp, line 3049.
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Aug 21 05:15:53 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47268
Bug ID: 47268
Summary: Assertion failed: (!D->isInvalidDecl() && "Cannot get
layout of invalid decl!"), function
getASTRecordLayout, file
/usr/src/contrib/llvm-project/clang/lib/AST/RecordLayo
utBuilder.cpp, line 3049.
Product: clang
Version: 11.0
Hardware: Other
OS: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: pkubaj at anongoth.pl
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
FreeBSD head, LLVM 11 rc1, powerpc64 elfv2
Reduced test case:
struct { a() { (int *)this } b
Compile with:
/usr/bin/c++ -cc1 -triple powerpc64-unknown-freebsd13.0 -Wcast-align test.cpp
Result:
Assertion failed: (!D->isInvalidDecl() && "Cannot get layout of invalid
decl!"), function getASTRecordLayout, file
/usr/src/contrib/llvm-project/clang/lib/AST/RecordLayoutBuilder.cpp, line 3049.
PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the
crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: /usr/bin/c++ -cc1 -triple
powerpc64-unknown-freebsd13.0 -Wcast-align test.cpp
1. drcbex86-285265.cpp:1:47: current parser token '}'
2. drcbex86-285265.cpp:1:1: parsing struct/union/class body '(anonymous)'
3. drcbex86-285265.cpp:1:23: parsing function body '(anonymous struct)::a'
4. drcbex86-285265.cpp:1:23: in compound statement ('{}')
Segmentation fault (core dumped)
--
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/20200821/aa6451f3/attachment.html>
More information about the llvm-bugs
mailing list