[LLVMbugs] [Bug 19253] New: clang emits global destructor warning for trivial explicitly defaulted destructors
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Mar 26 07:28:11 PDT 2014
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: st at quanttec.com
Reporter: st at quanttec.com
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140326/769672a0/attachment.html>
More information about the llvm-bugs
mailing list