[llvm-bugs] [Bug 38005] New: Assertion failed: RD->isAggregate() && "aggregate init on non-aggregate"
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Jun 30 07:36:15 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38005
Bug ID: 38005
Summary: Assertion failed: RD->isAggregate() && "aggregate init
on non-aggregate"
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: jvapen at gmail.com
CC: llvm-bugs at lists.llvm.org
Found on LLVM trunk (rev333363) with MSVC2017
Command
-------
clang-cl.exe -fms-compatibility-version=19.11 /nologo /c /GR /EHsc /std:c++17
t.cpp -w
t.cpp
-----
#include <string>
#include <vector>
struct C {
using const_iterator = std::vector<std::string>::const_iterator;
const_iterator cbegin() const;
const_iterator cend() const;
private:
std::vector<std::string> v;
};
C f();
void g() {
for (auto c : C{f()}) {
}
}
error
-----
Assertion failed: RD->isAggregate() && "aggregate init on non-aggregate", file
C:\src\llvm_package_333363\llvm\tools\clang\lib\Sema\SemaInit.cpp, line 6351
--
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/20180630/2116b2f6/attachment.html>
More information about the llvm-bugs
mailing list