[llvm-bugs] [Bug 41250] New: Assertion failed: (Dtor && "class has literal fields and bases but no dtor?") when compiled with std=c++17

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 26 21:53:20 PDT 2019


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

            Bug ID: 41250
           Summary: Assertion failed: (Dtor && "class has literal fields
                    and bases but no dtor?") when compiled with std=c++17
           Product: clang
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jelin at microsoft.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

Assertion failed: (Dtor && "class has literal fields and bases but no dtor?"),
function RequireLiteralType, file
/b/rr/tmp9JWo9i/w/src/third_party/llvm/tools/clang/lib/Sema/SemaType.cpp, line
8079.
Stack dump:
0.      Program arguments:
../../third_party/llvm-build/Release+Asserts/bin/clang++ -cc1 -triple
x86_64-apple-macosx10.14.0 -Wdeprecated-objc-isa-usage
-Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free
-main-file-name MOASharedUtil+Private.mm -mrelocation-model pic -pic-level 2
-mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables
-target-sdk-version=10.14 -target-cpu penryn -dwarf-column-info
-debug-info-kind=standalone -dwarf-version=4 -debugger-tuning=lldb
-ggnu-pubnames -target-linker-version 302.3 -coverage-notes-file
/Users/jelin/edge/src/out/NoGoma/MOASharedUtil+Private.gcno -resource-dir
../../third_party/llvm-build/Release+Asserts/lib/clang/9.0.0 -dependency-file
obj/third_party/microsoft_oneauth/msinternal/auth/MOASharedUtil+Private.o.d -MT
MOASharedUtil+Private.o -isysroot
../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
-D TARGET_OS_OSX -D __ANAHEIM__ -I ../.. -I gen -I
../../third_party/microsoft_oneauth/msinternal/src/sources/components/auth/djinni/generated/cpp
-I
../../third_party/microsoft_oneauth/msinternal/src/sources/components/auth/shared/config
-I
../../third_party/microsoft_oneauth/msinternal/src/sources/components/auth/shared/core
-I
../../third_party/microsoft_oneauth/msinternal/src/sources/components/auth/shared/hrd
-I
../../third_party/microsoft_oneauth/msinternal/src/sources/components/auth/shared/util
-I
../../third_party/microsoft_oneauth/msinternal/src/sources/components/auth/shared/impl
-I
../../third_party/microsoft_oneauth/msinternal/src/sources/components/net/djinni/generated/cpp
-I
../../third_party/microsoft_oneauth/msinternal/src/sources/components/net/shared
-I
../../third_party/microsoft_oneauth/msinternal/src/sources/components/auth/apple/controllers
-I
../../third_party/microsoft_oneauth/msinternal/src/sources/components/auth/apple/impl
-I
../../third_party/microsoft_oneauth/msinternal/src/sources/components/auth/apple/shims
-I
../../third_party/microsoft_oneauth/msinternal/src/sources/components/auth/djinni/generated/objc
-I
../../third_party/microsoft_oneauth/msinternal/src/sources/components/auth/macos/controllers
-I
../../third_party/microsoft_oneauth/msinternal/src/sources/components/auth/macos/impl
-I
../../third_party/microsoft_oneauth/msinternal/src/sources/components/auth/macos/util
-I
../../third_party/microsoft_oneauth/msinternal/src/sources/components/net/apple/impl
-I
../../third_party/microsoft_oneauth/msinternal/src/sources/components/net/djinni/generated/objc
-I ../../third_party/microsoft_oneauth/msinternal/src/sources/components/inc -I
../../third_party/microsoft_oneauth/msinternal/src/sources/components/localization/djinni/generated/cpp
-I
../../third_party/microsoft_oneauth/msinternal/src/sources/components/logging/shared
-I ../../third_party/microsoft_oneauth/msinternal/src/sources/public/shared -I
../../third_party/microsoft_oneauth/msinternal/src/tools/djinni/custom-types/cpp
-I
../../third_party/microsoft_oneauth/msinternal/src/deps/json/single_include/nlohmann
-I ../../third_party/microsoft_oneauth/msinternal/src/deps/pugixml -I
../../third_party/microsoft_oneauth/msinternal/src/deps/djinni/support-lib/objc
-I ../../third_party/microsoft_oneauth/msinternal/src/deps/syflatbutton -I
../../third_party/microsoft_oneauth/msinternal/src/sources/components/auth/apple/util
-I
../../third_party/microsoft_oneauth/msinternal/src/sources/components/localization/djinni/generated/objc
-I
../../third_party/microsoft_oneauth/msinternal/src/sources/components/logging/apple
-I ../../third_party/microsoft_oneauth/msinternal/src/sources/public/apple -I
../../third_party/microsoft_oneauth/msinternal/src/tools/djinni/custom-types/objc
-I gen/third_party/microsoft_oneauth/msinternal/inc -stdlib=libc++
-internal-isystem
../../third_party/llvm-build/Release+Asserts/bin/../include/c++/v1 -O0
-std=c++17 -fdeprecated-macro -fdebug-compilation-dir
/Users/jelin/edge/src/out/NoGoma -ferror-limit 19 -fmessage-length 80
-stack-protector 1 -fblocks -fencode-extended-block-signature
-fregister-global-dtors-with-atexit -fobjc-runtime=macosx-10.14.0 -fobjc-arc
-fobjc-arc-cxxlib=libc++ -fobjc-arc-exceptions -fobjc-exceptions
-fcxx-exceptions -fexceptions -fmax-type-align=16 -fdiagnostics-show-option
-fcolor-diagnostics -mllvm -instcombine-lower-dbg-declare=0 -o
MOASharedUtil+Private.o -x objective-c++
../../third_party/microsoft_oneauth/msinternal/src/sources/components/auth/djinni/generated/objc/MOASharedUtil+Private.mm 
1.      <eof> parser at end of file
2.     
../../third_party/microsoft_oneauth/msinternal/src/deps/djinni/support-lib/objc/DJICppWrapperCache+Private.h:58:12:
instantiating function definition 'djinni::get_cpp_proxy<MOASharedUtil,
std::__1::shared_ptr<Microsoft::OneAuth::SharedUtil> >'
3.     
../../third_party/microsoft_oneauth/msinternal/src/deps/djinni/support-lib/objc/DJICppWrapperCache+Private.h:42:12:
instantiating function definition 'djinni::get_cpp_proxy_impl<MOASharedUtil,
Microsoft::OneAuth::SharedUtil>'
0  clang++                  0x000000010178d8c5 void
std::__1::__call_once_proxy<std::__1::tuple<void (&)()> >(void*) + 378997
1  clang++                  0x000000010178c7e8 void
std::__1::__call_once_proxy<std::__1::tuple<void (&)()> >(void*) + 374680
2  clang++                  0x000000010178deb8 void
std::__1::__call_once_proxy<std::__1::tuple<void (&)()> >(void*) + 380520
3  libsystem_platform.dylib 0x00007fff78581b3d _sigtramp + 29
4  clang++                  0x00000001043910f0
llvm::Registry<clang::PragmaHandler>::Head + 373728
5  libsystem_c.dylib        0x00007fff7843f1c9 abort + 127
6  libsystem_c.dylib        0x00007fff78407868 basename_r + 0
7  clang++                  0x0000000102d1cbf0
llvm::object::ELFFile<llvm::object::ELFType<(llvm::support::endianness)0, true>
>::getSectionName(llvm::object::Elf_Shdr_Impl<llvm::object::ELFType<(llvm::support::endianness)0,
true> > const*, llvm::StringRef) const + 8561104
8  clang++                  0x0000000102d1cc17
llvm::object::ELFFile<llvm::object::ELFType<(llvm::support::endianness)0, true>
>::getSectionName(llvm::object::Elf_Shdr_Impl<llvm::object::ELFType<(llvm::support::endianness)0,
true> > const*, llvm::StringRef) const + 8561143
9  clang++                  0x000000010287c32b
llvm::object::ELFFile<llvm::object::ELFType<(llvm::support::endianness)0, true>
>::getSectionName(llvm::object::Elf_Shdr_Impl<llvm::object::ELFType<(llvm::support::endianness)0,
true> > const*, llvm::StringRef) const + 3709195
10 clang++                  0x0000000102a7cb32
llvm::object::ELFFile<llvm::object::ELFType<(llvm::support::endianness)0, true>
>::getSectionName(llvm::object::Elf_Shdr_Impl<llvm::object::ELFType<(llvm::support::endianness)0,
true> > const*, llvm::StringRef) const + 5808402
11 clang++                  0x0000000102cbea0e
llvm::object::ELFFile<llvm::object::ELFType<(llvm::support::endianness)0, true>
>::getSectionName(llvm::object::Elf_Shdr_Impl<llvm::object::ELFType<(llvm::support::endianness)0,
true> > const*, llvm::StringRef) const + 8175598
12 clang++                  0x0000000102ca838c
llvm::object::ELFFile<llvm::object::ELFType<(llvm::support::endianness)0, true>
>::getSectionName(llvm::object::Elf_Shdr_Impl<llvm::object::ELFType<(llvm::support::endianness)0,
true> > const*, llvm::StringRef) const + 8083820
13 clang++                  0x0000000102ca9d23
llvm::object::ELFFile<llvm::object::ELFType<(llvm::support::endianness)0, true>
>::getSectionName(llvm::object::Elf_Shdr_Impl<llvm::object::ELFType<(llvm::support::endianness)0,
true> > const*, llvm::StringRef) const + 8090371
14 clang++                  0x0000000102cb14f9
llvm::object::ELFFile<llvm::object::ELFType<(llvm::support::endianness)0, true>
>::getSectionName(llvm::object::Elf_Shdr_Impl<llvm::object::ELFType<(llvm::support::endianness)0,
true> > const*, llvm::StringRef) const + 8121049
15 clang++                  0x0000000102cc77a8
llvm::object::ELFFile<llvm::object::ELFType<(llvm::support::endianness)0, true>
>::getSectionName(llvm::object::Elf_Shdr_Impl<llvm::object::ELFType<(llvm::support::endianness)0,
true> > const*, llvm::StringRef) const + 8211848
16 clang++                  0x0000000102cbfcc2
llvm::object::ELFFile<llvm::object::ELFType<(llvm::support::endianness)0, true>
>::getSectionName(llvm::object::Elf_Shdr_Impl<llvm::object::ELFType<(llvm::support::endianness)0,
true> > const*, llvm::StringRef) const + 8180386
17 clang++                  0x0000000102ca6e4f
llvm::object::ELFFile<llvm::object::ELFType<(llvm::support::endianness)0, true>
>::getSectionName(llvm::object::Elf_Shdr_Impl<llvm::object::ELFType<(llvm::support::endianness)0,
true> > const*, llvm::StringRef) const + 8078383
18 clang++                  0x0000000102ce517d
llvm::object::ELFFile<llvm::object::ELFType<(llvm::support::endianness)0, true>
>::getSectionName(llvm::object::Elf_Shdr_Impl<llvm::object::ELFType<(llvm::support::endianness)0,
true> > const*, llvm::StringRef) const + 8333149
19 clang++                  0x0000000102ce8701
llvm::object::ELFFile<llvm::object::ELFType<(llvm::support::endianness)0, true>
>::getSectionName(llvm::object::Elf_Shdr_Impl<llvm::object::ELFType<(llvm::support::endianness)0,
true> > const*, llvm::StringRef) const + 8346849
20 clang++                  0x0000000102ce5338
llvm::object::ELFFile<llvm::object::ELFType<(llvm::support::endianness)0, true>
>::getSectionName(llvm::object::Elf_Shdr_Impl<llvm::object::ELFType<(llvm::support::endianness)0,
true> > const*, llvm::StringRef) const + 8333592
21 clang++                  0x0000000102ce8701
llvm::object::ELFFile<llvm::object::ELFType<(llvm::support::endianness)0, true>
>::getSectionName(llvm::object::Elf_Shdr_Impl<llvm::object::ELFType<(llvm::support::endianness)0,
true> > const*, llvm::StringRef) const + 8346849
22 clang++                  0x00000001026a3461
llvm::object::ELFFile<llvm::object::ELFType<(llvm::support::endianness)0, true>
>::getSectionName(llvm::object::Elf_Shdr_Impl<llvm::object::ELFType<(llvm::support::endianness)0,
true> > const*, llvm::StringRef) const + 1772097
23 clang++                  0x00000001025f3f06
llvm::object::ELFFile<llvm::object::ELFType<(llvm::support::endianness)0, true>
>::getSectionName(llvm::object::Elf_Shdr_Impl<llvm::object::ELFType<(llvm::support::endianness)0,
true> > const*, llvm::StringRef) const + 1053926
24 clang++                  0x0000000102547415
llvm::object::ELFFile<llvm::object::ELFType<(llvm::support::endianness)0, true>
>::getSectionName(llvm::object::Elf_Shdr_Impl<llvm::object::ELFType<(llvm::support::endianness)0,
true> > const*, llvm::StringRef) const + 346613
25 clang++                  0x0000000101ec1aca
llvm::Registry<clang::PluginASTAction>::begin() + 19210
26 clang++                  0x0000000101e5c1b1 void
llvm::DomTreeBuilder::Calculate<llvm::DominatorTreeBase<llvm::VPBlockBase,
false> >(llvm::DominatorTreeBase<llvm::VPBlockBase, false>&) + 5571585
27 clang++                  0x0000000101f1944b
llvm::Registry<clang::PluginASTAction>::begin() + 377995
28 clang++                  0x00000001000076fb
29 clang++                  0x000000010000519f
30 clang++                  0x0000000100002314
clang++: error: unable to execute command: Abort trap: 6
clang++: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 9.0.0 (trunk 356356)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: ../../third_party/llvm-build/Release+Asserts/bin
clang++: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.llvm.org/ and include the crash backtrace, preprocessed source,
and associated run script.
clang++: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg:
/var/folders/sm/41y3nck96h7fhxhvhjzrt19w0000gn/T/MOASharedUtil+Private-abf7c1.mm
clang++: note: diagnostic msg:
/var/folders/sm/41y3nck96h7fhxhvhjzrt19w0000gn/T/MOASharedUtil+Private-abf7c1.sh
clang++: note: diagnostic msg: Crash backtrace is located in
clang++: note: diagnostic msg:
/Users/jelin/Library/Logs/DiagnosticReports/clang++_<YYYY-MM-DD-HHMMSS>_<hostname>.crash
clang++: note: diagnostic msg: (choose the .crash file that corresponds to your
crash)
clang++: note: diagnostic msg: 

********************

-- 
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/20190327/49d6413f/attachment-0001.html>


More information about the llvm-bugs mailing list