zmodem wrote:
We're getting compilation failures after this. Here is a reproducer:
[fuzztest_macros.ii.gz](https://github.com/user-attachments/files/28644965/fuzztest_macros.ii.gz)
```
$ clang -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -std=c++23
/tmp/fuzztest_macros.ii -w
In file included from
../../third_party/fuzztest/src/fuzztest/fuzztest_macros.cc:15:
In file included from
../../third_party/fuzztest/src/./fuzztest/fuzztest_macros.h:27:
In file included from
../../third_party/fuzztest/src/./fuzztest/internal/registration.h:32:
In file included from
../../third_party/fuzztest/src/./fuzztest/domain_core.h:50:
In file included from
../../third_party/fuzztest/src/./fuzztest/internal/domains/aggregate_of_impl.h:27:
In file included from
../../third_party/fuzztest/src/./fuzztest/internal/domains/domain_base.h:33:
In file included from
../../third_party/fuzztest/src/./fuzztest/internal/domains/domain_type_erasure.h:38:
In file included from
../../third_party/fuzztest/src/./fuzztest/internal/domains/mutation_metadata.h:18:
In file included from
../../third_party/fuzztest/src/./fuzztest/internal/table_of_recent_compares.h:30:
../../third_party/fuzztest/src/./fuzztest/internal/type_support.h:494:9: error:
function 'AutodetectTypePrinter<std::string>' with deduced return type cannot
be used before it is defined
494 | AutodetectTypePrinter<decltype(value)>().PrintUserValue(value,
out,
| ^
../../third_party/fuzztest/src/./fuzztest/internal/printer.h:52:13: note: in
instantiation of function template specialization
'fuzztest::internal::MappedPrinter<std::string (*)(const std::vector<int> &),
fuzztest::internal::SequenceContainerOfImpl<std::vector<int>,
fuzztest::internal::OneOfImpl<fuzztest::internal::InRangeImpl<int>,
fuzztest::internal::InRangeImpl<int>>>>::PrintCorpusValue<std::tuple<std::list<std::variant<int,
int>>>>' requested here
52 | printer.PrintCorpusValue(corpus_value, out, mode);
| ^
.....
```
Based on the description, it does not sound like this was intended.
>From the description it's also not clear what changed between the original PR
>and this reland, but I don't remember seeing this error last time.
https://github.com/llvm/llvm-project/pull/201373
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits