Issue 162505
Summary libc++ std::deque needs complete definition before declaration
Labels libc++
Assignees
Reporter kraj
    libc++ 18+ requires element types of std::deque/std::queue to be
complete at the point of declaration, this is exposed when compiling apt
using libc++ headers.

In solver3.h, Solver::Var was only forward-declared when the
propQ and discoverQ queues were declared, leading to a build failure:

error: invalid application of 'sizeof' to an incomplete type 'APT::Solver::Var'

A potential workaround patch for apt to overcome this is here

https://salsa.debian.org/apt-team/apt/-/merge_requests/511/diffs?commit_id=7c68412e36434786cdc75e514a56350ab2c38caa

but this patch perhaps should not be required.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to