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: unassignedclangb...@nondot.org
          Reporter: d...@znu.io
                CC: blitzrak...@gmail.com, dgre...@apple.com,
                    erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
                    richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to