-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Closed
Closed
Copy link
Labels
c++14clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyVerified by a second partycrash-on-valid
Description
$ ./clang "-cc1" "-o" "/dev/null" -std=c++1y "-x" "c++" pat.cpp
Assertion failed: ((!ListInitialization || (Exprs.size() == 1 && isa<InitListExpr>(Exprs[0]))) && "List initialization must have initializer list as expression."), function BuildCXXTypeConstructExpr, file SemaExprCXX.cpp, line 1457.
$ cat pat.cpp
namespace std {
template <class _Tp> class vector {};
} // namespace std
template <typename T>
class Vector : public std::vector<T> {};
struct S {
S();
template <class Dummy> void f();
const Vector<int> &g();
};
S::S() {
f<int>();
}
template <class Dummy>
void S::f() {
__attribute__((unused)) auto _ =
decltype(g()){};
}
Metadata
Metadata
Assignees
Labels
c++14clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyVerified by a second partycrash-on-valid