Handle decltype() in variadic expansion

This commit is contained in:
Jonathan Müller 2017-04-19 17:28:50 +02:00
commit 79fce1170b

View file

@ -444,6 +444,7 @@ namespace
return make_leave_type(type, [&](std::string&& spelling) -> std::unique_ptr<cpp_type> {
if (!remove_prefix(spelling, "decltype("))
return nullptr;
remove_suffix(spelling, "..."); // variadic decltype. fun
DEBUG_ASSERT(!spelling.empty() && spelling.back() == ')', detail::parse_error_handler{},
type, "unexpected spelling");
spelling.pop_back();