abseil / abseil/abseil-cpp

[Bug]: Compilation error on mac: xcode command line interface 15.3

Aberta
#1,648 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
C++
Estrelas
18.1k
Forks
3.2k
Merge médio
20h 36min
PRs com merge (30d)
1

Descrição

### Describe the issue

external/com_google_absl/absl/strings/internal/str_split_internal.h:286:25: error: initializing pointer member 'text_' with the stack address of parameter 'input_text' [-Werror,-Wdangling-field]
: text_(std::move(input_text)),
^~~~~~~~~~
external/com_google_absl/absl/strings/str_split.h:520:10: note: in instantiation of member function 'absl::lts_20240116::strings_internal::Splitter>::Splitter' requested here
return strings_internal::Splitter' requested here
for (absl::string_view line_text : absl::StrSplit(format_string, '\n')) {
^
external/com_google_absl/absl/strings/internal/str_split_internal.h:472:14: note: pointer member declared here
StringType text_;
^

### Steps to reproduce the problem

checkout google/or-tools on the main branch
compile with bazel

### What version of Abseil are you using?

20240116.1

### What operating system and version are you using?

Darwin XXX 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:11:05 PDT 2024; root:xnu-10063.101.17~1/RELEASE_X86_64 x86_64

### What compiler and version are you using?

Apple clang version 12.0.5 (clang-1205.0.22.11)
Target: x86_64-apple-darwin23.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

### What build system are you using?

bazel 7.1.1

### Additional context

_No response_

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.