[llvm-bugs] [Bug 40764] New: Regression: is_trivially_destructible fails with top-of-tree building Swift top-of-tree

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Feb 18 10:44:32 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=40764

            Bug ID: 40764
           Summary: Regression: is_trivially_destructible fails with
                    top-of-tree building Swift top-of-tree
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: dave at znu.io
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

is_trivially_destructible is failing with top-of-tree clang building
top-of-tree swift. It seems like implicit destructors are spuriously being
created when they shouldn't be. Please consider looking at this preprocessed
file:

http://znu.io/Type.cpp

Which generates the following spurious error:

/home/dave/s/uu/swift/include/swift/AST/TypeNodes.def:146:1: error:
static_assert failed due to requirement
'IsTriviallyDestructible<swift::SILFunctionType>::value' "Types are
BumpPtrAllocated; the destructor is never called"
static_assert(IsTriviallyDestructible<SILFunctionType>::value, "Types are
BumpPtrAllocated; the destructor is never called");
^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-- 
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/20190218/fa9e7e14/attachment.html>


More information about the llvm-bugs mailing list