Handle decltype() in variadic expansion
This commit is contained in:
parent
da033cdebe
commit
79fce1170b
1 changed files with 1 additions and 0 deletions
|
|
@ -444,6 +444,7 @@ namespace
|
||||||
return make_leave_type(type, [&](std::string&& spelling) -> std::unique_ptr<cpp_type> {
|
return make_leave_type(type, [&](std::string&& spelling) -> std::unique_ptr<cpp_type> {
|
||||||
if (!remove_prefix(spelling, "decltype("))
|
if (!remove_prefix(spelling, "decltype("))
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
remove_suffix(spelling, "..."); // variadic decltype. fun
|
||||||
DEBUG_ASSERT(!spelling.empty() && spelling.back() == ')', detail::parse_error_handler{},
|
DEBUG_ASSERT(!spelling.empty() && spelling.back() == ')', detail::parse_error_handler{},
|
||||||
type, "unexpected spelling");
|
type, "unexpected spelling");
|
||||||
spelling.pop_back();
|
spelling.pop_back();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue