http://llvm.org/bugs/show_bug.cgi?id=19253
Bug ID: 19253
Summary: clang emits global destructor warning for trivial
explicitly defaulted destructors
Product: clang
Version: trunk
Hardware: All
OS: All
Status: ASSIGNED
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
clang currently generates a global destructor warning for the following
variable declaration although the destructor is trivial.
--
struct Test {
~Test() = default;
};
Test test;
--
clang++ -std=c++11 -Wglobal-constructors test.cpp
test.cpp:5:6: warning: declaration requires a global destructor
[-Wglobal-constructors]
Test test;
^
1 warning generated.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs