[LLVMbugs] [Bug 24181] New: False positive for -Wdangling-initializer-list
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Jul 19 08:14:20 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24181
Bug ID: 24181
Summary: False positive for -Wdangling-initializer-list
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: Casey at Carter.net
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 14616
--> https://llvm.org/bugs/attachment.cgi?id=14616&action=edit
Test case
Clang's dangling-initializer-list diagnostic is incorrectly emitted twice for
this program:
#include <initializer_list>
int main() {
new std::initializer_list<int>[2]{};
new std::initializer_list<int>{};
}
All instances of std::initializer_list in this program are value-initialized,
and hence not backed by any array.
--
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/20150719/f8e0b5f3/attachment.html>
More information about the llvm-bugs
mailing list