The problem occurs in versions v2.9.0 - v2.9.1 and probably in v2.10.0. Below v2.9.0, there is no such problem
In file included from /mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:12:
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_conversion_utils.h:10:5: error: ‘StableListHandle’ was not declared in this scope
10 | StableListHandle handle) {
| ^~~~~~~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_conversion_utils.h:14:8: error: ‘StableListHandle’ does not name a type
14 | inline StableListHandle list_pointer_to_list_handle(
| ^~~~~~~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_conversion_utils.h:19:8: error: ‘StableListHandle’ does not name a type
19 | inline StableListHandle new_list_handle(std::vector&& list) {
| ^~~~~~~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:15:57: error: ‘StableListHandle’ has not been declared
15 | AOTITorchError torch_new_list_reserve_size(size_t size, StableListHandle* ret) {
| ^~~~~~~~~~~~~~~~
In file included from /mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:7:
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp: In function ‘AOTITorchError torch_new_list_reserve_size(size_t, int*)’:
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:19:16: error: ‘list_pointer_to_list_handle’ was not declared in this scope
19 | { ret = list_pointer_to_list_handle(list_ptr.release()); });
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/inductor/aoti_torch/utils.h:16:5: note: in definition of macro ‘AOTI_TORCH_CONVERT_EXCEPTION_TO_ERROR_CODE’
16 | VA_ARGS
| ^~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp: At global scope:
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:23:17: error: ‘StableListHandle’ was not declared in this scope
23 | torch_list_size(StableListHandle list_handle, size_t size) {
| ^~~~~~~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:23:53: error: expected primary-expression before '’ token
23 | torch_list_size(StableListHandle list_handle, size_t size) {
| ^
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:23:55: error: ‘size’ was not declared in this scope
23 | torch_list_size(StableListHandle list_handle, size_t* size) {
| ^~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:23:55: note: suggested alternatives:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/14.3.1/include/c++/unordered_map:42,
from /usr/lib/gcc/x86_64-pc-linux-gnu/14.3.1/include/c++/functional:63,
from /mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/headeronly/core/DeviceType.h:13,
from /mnt/sata/pytorch-rocm/pytorch-2.9.1/c10/core/DeviceType.h:7,
from /mnt/sata/pytorch-rocm/pytorch-2.9.1/c10/core/Device.h:3,
from /mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:1:
/usr/lib/gcc/x86_64-pc-linux-gnu/14.3.1/include/c++/bits/range_access.h:272:5: note: ‘std::size’
272 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
In file included from /mnt/sata/pytorch-rocm/pytorch-2.9.1/build/aten/src/ATen/core/TensorBody.h:39,
from /mnt/sata/pytorch-rocm/pytorch-2.9.1/aten/src/ATen/core/Tensor.h:3,
from /mnt/sata/pytorch-rocm/pytorch-2.9.1/aten/src/ATen/Tensor.h:3,
from /mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/inductor/aoti_torch/tensor_converter.h:3,
from /mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:6:
/mnt/sata/pytorch-rocm/pytorch-2.9.1/aten/src/ATen/core/TensorBase.h:1079:9: note: ‘at::symint::size’
1079 | int64_t size(const TensorBase& t, int64_t dim) { return t.size(dim); }
| ^~~~
In file included from /mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/headeronly/util/Metaprogramming.h:4,
from /mnt/sata/pytorch-rocm/pytorch-2.9.1/c10/util/Metaprogramming.h:1,
from /mnt/sata/pytorch-rocm/pytorch-2.9.1/c10/core/DispatchKeySet.h:6,
from /mnt/sata/pytorch-rocm/pytorch-2.9.1/c10/core/Backend.h:5,
from /mnt/sata/pytorch-rocm/pytorch-2.9.1/c10/core/Layout.h:3,
from /mnt/sata/pytorch-rocm/pytorch-2.9.1/build/aten/src/ATen/core/TensorBody.h:12:
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/headeronly/util/TypeList.h:35:13: note: ‘c10::guts::typelist::size’
35 | struct size final {
| ^~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/headeronly/util/TypeList.h:35:13: note: ‘c10::guts::typelist::size’
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:23:59: error: expression list treated as compound expression in initializer [-fpermissive]
23 | torch_list_size(StableListHandle list_handle, size_t* size) {
| ^
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:31:5: error: ‘StableListHandle’ was not declared in this scope
31 | StableListHandle list_handle,
| ^~~~~~~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:32:12: error: expected primary-expression before ‘index’
32 | size_t index,
| ^~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:33:17: error: expected primary-expression before '’ token
33 | StableIValue element) {
| ^
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:33:19: error: ‘element’ was not declared in this scope; did you mean ‘c10::guts::typelist::element’?
33 | StableIValue* element) {
| ^~~~~~~
| c10::guts::typelist::element
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/headeronly/util/TypeList.h:293:16: note: ‘c10::guts::typelist::element’ declared here
293 | struct element final {
| ^~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:33:26: error: expression list treated as compound expression in initializer [-fpermissive]
33 | StableIValue* element) {
| ^
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:41:5: error: ‘StableListHandle’ was not declared in this scope
41 | StableListHandle list_handle,
| ^~~~~~~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:42:12: error: expected primary-expression before ‘index’
42 | size_t index,
| ^~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:43:18: error: expected primary-expression before ‘element’
43 | StableIValue element) {
| ^~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:43:25: error: expression list treated as compound expression in initializer [-fpermissive]
43 | StableIValue element) {
| ^
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:51:5: error: ‘StableListHandle’ was not declared in this scope
51 | StableListHandle list_handle,
| ^~~~~~~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:52:18: error: expected primary-expression before ‘element’
52 | StableIValue element) {
| ^~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:52:25: error: expression list treated as compound expression in initializer [-fpermissive]
52 | StableIValue element) {
| ^
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:60:19: error: ‘StableListHandle’ was not declared in this scope
60 | torch_delete_list(StableListHandle list_handle) {
| ^~~~~~~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp: In function ‘StableIValue from_ivalue(const c10::TypePtr&, const c10::IValue&, uint64_t)’:
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:145:11: error: ‘list_pointer_to_list_handle’ was not declared in this scope
145 | list_pointer_to_list_handle(stableivalue_list.release()),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp: In function ‘c10::IValue to_ivalue(const c10::TypePtr&, StableIValue, uint64_t)’:
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:245:53: error: ‘StableListHandle’ was not declared in this scope
245 | auto list_handle = torch::stable::detail::_to(
| ^~~~~~~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:245:70: error: no matching function for call to ‘_to< >(const StableIValue&, uint64_t&)’
245 | auto list_handle = torch::stable::detail::_to(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
246 | stable_ivalue, extension_build_version);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/stable/library.h:14,
from /mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:8:
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/stable/stableivalue_conversions.h:809:10: note: candidate: ‘template T torch::stable::detail::_to(StableIValue, uint64_t)’
809 | inline T _to(StableIValue val, uint64_t extension_build_version) {
| ^~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/stable/stableivalue_conversions.h:809:10: note: template argument deduction/substitution failed:
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:245:70: error: template argument 1 is invalid
245 | auto list_handle = torch::stable::detail::_to(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
246 | stable_ivalue, extension_build_version);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:248:38: error: ‘list_handle_to_list_pointer’ cannot be used as a function
248 | list_handle_to_list_pointer(list_handle);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from /mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/inductor/aoti_runtime/utils.h:15,
from /mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:4:
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:255:47: error: ‘torch_delete_list’ cannot be used as a function
255 | TORCH_ERROR_CODE_CHECK(torch_delete_list(list_handle));
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/headeronly/util/shim_utils.h:27:8: note: in definition of macro ‘TORCH_ERROR_CODE_CHECK’
27 | if ((call) != TORCH_SUCCESS) {
| ^~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp: At global scope:
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:550:5: error: ‘ParallelFunc’ has not been declared
550 | ParallelFunc func,
| ^~~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp: In lambda function:
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:555:15: error: ‘func’ cannot be used as a function
555 | func(begin, end, ctx);
| ~~~~^~~~~~~~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/inductor/aoti_torch/utils.h:16:5: note: in definition of macro ‘AOTI_TORCH_CONVERT_EXCEPTION_TO_ERROR_CODE’
16 | VA_ARGS
| ^~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp: At global scope:
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:591:58: error: ‘StringHandle’ has not been declared
591 | torch_new_string_handle(const char* data, size_t length, StringHandle* handle) {
| ^~~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp: In function ‘AOTITorchError torch_new_string_handle(const char*, size_t, int*)’:
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:594:32: error: ‘StringHandle’ does not name a type; did you mean ‘StreamHandle’?
594 | handle = reinterpret_cast(str_ptr);
| ^~~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/inductor/aoti_torch/utils.h:16:5: note: in definition of macro ‘AOTI_TORCH_CONVERT_EXCEPTION_TO_ERROR_CODE’
16 | VA_ARGS
| ^~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp: At global scope:
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:598:54: error: ‘StringHandle’ was not declared in this scope; did you mean ‘StreamHandle’?
598 | AOTI_TORCH_EXPORT AOTITorchError torch_delete_string(StringHandle handle) {
| ^~~~~~~~~~~~
| StreamHandle
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:606:21: error: ‘StringHandle’ was not declared in this scope; did you mean ‘StreamHandle’?
606 | torch_string_length(StringHandle handle, size_t length) {
| ^~~~~~~~~~~~
| StreamHandle
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:606:48: error: expected primary-expression before '’ token
606 | torch_string_length(StringHandle handle, size_t length) {
| ^
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:606:50: error: ‘length’ was not declared in this scope
606 | torch_string_length(StringHandle handle, size_t* length) {
| ^~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:606:56: error: expression list treated as compound expression in initializer [-fpermissive]
606 | torch_string_length(StringHandle handle, size_t* length) {
| ^
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:614:20: error: ‘StringHandle’ was not declared in this scope; did you mean ‘StreamHandle’?
614 | torch_string_c_str(StringHandle handle, const char** data) {
| ^~~~~~~~~~~~
| StreamHandle
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:614:41: error: expected primary-expression before ‘const’
614 | torch_string_c_str(StringHandle handle, const char** data) {
| ^~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:614:58: error: expression list treated as compound expression in initializer [-fpermissive]
614 | torch_string_c_str(StringHandle handle, const char** data) {
| ^
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/stable/stableivalue_conversions.h: In instantiation of ‘static StableIValue torch::stable::detail::FromImpl::call(T, uint64_t, bool) [with T = std::__cxx11::basic_string; StableIValue = long unsigned int; uint64_t = long unsigned int]’:
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/stable/stableivalue_conversions.h:789:35: required from ‘StableIValue torch::stable::detail::_from(T, uint64_t) [with T = std::__cxx11::basic_string; StableIValue = long unsigned int; uint64_t = long unsigned int]’
789 | return detail::FromImpl::call(
| ~~~~~~~~~~~~~~~~~~~~~~~~~^
790 | val, extension_build_version, /is_internal=/true);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:149:42: required from here
149 | return torch::stable::detail::_from(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
150 | ivalue.toStringRef(), extension_build_version);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/stable/stableivalue_conversions.h:68:15: error: static assertion failed: std::string requires TORCH_FEATURE_VERSION >= TORCH_VERSION_2_10_0
68 | !std::is_same_v<T, std::string>,
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/stable/stableivalue_conversions.h:68:15: note: ‘!(bool)std::is_same_v<std::__cxx11::basic_string, std::__cxx11::basic_string >’ evaluates to false
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/stable/stableivalue_conversions.h:71:19: error: static assertion failed: StableLibrary stack does not support parameter types larger than 64 bits.
71 | sizeof(T) <= sizeof(StableIValue),
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/stable/stableivalue_conversions.h:71:19: note: the comparison reduces to ‘(32 <= 8)’
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/stable/stableivalue_conversions.h:73:24: error: static assertion failed
73 | static_assert(std::is_trivially_copyable_v);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/stable/stableivalue_conversions.h:73:24: note: ‘std::is_trivially_copyable_v<std::__cxx11::basic_string >’ evaluates to false
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/stable/stableivalue_conversions.h: In instantiation of ‘static T torch::stable::detail::ToImpl::call(StableIValue, uint64_t, bool) [with T = std::__cxx11::basic_string; StableIValue = long unsigned int; uint64_t = long unsigned int]’:
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/stable/stableivalue_conversions.h:810:33: required from ‘T torch::stable::detail::_to(StableIValue, uint64_t) [with T = std::__cxx11::basic_string; StableIValue = long unsigned int; uint64_t = long unsigned int]’
810 | return detail::ToImpl::call(
| ~~~~~~~~~~~~~~~~~~~~~~~^
811 | val, extension_build_version, /is_internal=/true);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/shim_common.cpp:259:65: required from here
259 | return c10::IValue(torch::stable::detail::_tostd::string(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
260 | stable_ivalue, extension_build_version));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/stable/stableivalue_conversions.h:441:15: error: static assertion failed: std::string requires TORCH_FEATURE_VERSION >= TORCH_VERSION_2_10_0
441 | !std::is_same_v<T, std::string>,
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/stable/stableivalue_conversions.h:441:15: note: ‘!(bool)std::is_same_v<std::__cxx11::basic_string, std::__cxx11::basic_string >’ evaluates to false
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/stable/stableivalue_conversions.h:443:24: error: static assertion failed
443 | static_assert(std::is_trivially_copyable_v);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/stable/stableivalue_conversions.h:443:24: note: ‘std::is_trivially_copyable_v<std::__cxx11::basic_string >’ evaluates to false
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/stable/stableivalue_conversions.h:452:12: error: use of deleted function ‘torch::stable::detail::ToImpl<std::__cxx11::basic_string >::call(StableIValue, uint64_t, bool)::Result::~Result()’
452 | Result result;
| ^~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/stable/stableivalue_conversions.h:448:11: note: ‘torch::stable::detail::ToImpl<std::__cxx11::basic_string >::call(StableIValue, uint64_t, bool)::Result::~Result()’ is implicitly deleted because the default definition would be ill-formed:
448 | union Result {
| ^~~~~~
/mnt/sata/pytorch-rocm/pytorch-2.9.1/torch/csrc/stable/stableivalue_conversions.h:450:9: error: union member ‘torch::stable::detail::ToImpl<std::__cxx11::basic_string >::call(StableIValue, uint64_t, bool)::Result::t’ with non-trivial ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::~basic_string() [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]’
450 | T t;
| ^