Skip to content

FormatterBytecode.cpp: error: no viable conversion from 'unsigned long long' to 'DataStackElement' ( #119467

@sylvestre

Description

@sylvestre

On linux with main


FAILED: tools/lldb/source/DataFormatters/CMakeFiles/lldbDataFormatters.dir/FormatterBytecode.cpp.o
/build/source/build-llvm/./bin/clang++ -DHAVE_ROUND -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools/lldb/source/DataFormatters -I/build/source/lldb/source/DataFormatters -I/build/source/lldb/include -Itools/lldb/include -Iinclude -I/build/source/llvm/include -I/usr/include/python3.8 -I/build/source/clang/include -Itools/lldb/../clang/include -I/build/source/lldb/source -Itools/lldb/source -isystem /usr/include/libxml2 -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/build/source/build-llvm/tools/clang/stage2-bins=../../../../ -ffile-prefix-map=/build/source/= -no-canonical-prefixes -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-vla-extension -O2 -DNDEBUG -g1  -fno-exceptions -funwind-tables -std=c++17 -MD -MT tools/lldb/source/DataFormatters/CMakeFiles/lldbDataFormatters.dir/FormatterBytecode.cpp.o -MF tools/lldb/source/DataFormatters/CMakeFiles/lldbDataFormatters.dir/FormatterBytecode.cpp.o.d -o tools/lldb/source/DataFormatters/CMakeFiles/lldbDataFormatters.dir/FormatterBytecode.cpp.o -c /build/source/lldb/source/DataFormatters/FormatterBytecode.cpp
/build/source/lldb/source/DataFormatters/FormatterBytecode.cpp:342:17: error: no viable conversion from 'unsigned long long' to 'DataStackElement' (aka 'variant<basic_string<char>, unsigned long, long, shared_ptr<lldb_private::ValueObject>, lldb_private::CompilerType, lldb_private::FormatterBytecode::Selectors>')
  342 |       data.Push(data.Pop<ValueObjectSP>() ? 0ULL : 1ULL);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/aarch64-linux-gnu/9/../../../../include/c++/9/variant:1288:7: note: candidate constructor not viable: no known conversion from 'unsigned long long' to 'const variant<basic_string<char>, unsigned long, long, shared_ptr<ValueObject>, CompilerType, Selectors> &' for 1st argument
 1288 |       variant(const variant& __rhs) = default;
      |       ^       ~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/aarch64-linux-gnu/9/../../../../include/c++/9/variant:1289:7: note: candidate constructor not viable: no known conversion from 'unsigned long long' to 'variant<basic_string<char>, unsigned long, long, shared_ptr<ValueObject>, CompilerType, Selectors> &&' for 1st argument
 1289 |       variant(variant&&) = default;
      |       ^       ~~~~~~~~~
/usr/lib/gcc/aarch64-linux-gnu/9/../../../../include/c++/9/variant:1301:2: note: candidate template ignored: requirement '18446744073709551615UL < sizeof...(_Types)' was not satisfied [with _Tp = unsigned long long, $1 = enable_if_t<sizeof...(_Types) != 0>, $2 = enable_if_t<__not_in_place_tag<unsigned long long>>]
 1301 |         variant(_Tp&& __t)
      |         ^
/usr/lib/gcc/aarch64-linux-gnu/9/../../../../include/c++/9/variant:1311:2: note: explicit constructor is not a candidate
 1311 |         variant(in_place_type_t<_Tp>, _Args&&... __args)
      |         ^
/usr/lib/gcc/aarch64-linux-gnu/9/../../../../include/c++/9/variant:1331:2: note: explicit constructor is not a candidate
 1331 |         variant(in_place_index_t<_Np>, _Args&&... __args)
      |         ^
/build/source/lldb/source/DataFormatters/FormatterBytecode.h:44:30: note: passing argument to parameter 'el' here
   44 |   void Push(DataStackElement el) { push_back(el); }
      |                              ^
1 error generated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions