https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108071

--- Comment #8 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
(In reply to Sergei Trofimovich from comment #7)
> Got a build failure of clang-14 on this week's gcc. Minimal example:

Forgot the example itself:

// $ cat bug.cc.cc
#include <initializer_list>

class OptSpecifier;
struct ArrayRef {
  ArrayRef(std::initializer_list<OptSpecifier>);
};
struct OptSpecifier {
  explicit OptSpecifier(bool);
  OptSpecifier(unsigned);
};
struct ArgList {
  void AddAllArgs(ArrayRef) const;
};
enum { OPT_u };
struct Linker {
  void ConstructJob(const ArgList &) const;
};
void Linker::ConstructJob(const ArgList &Args) const {
  Args.AddAllArgs({OPT_u});
}

Reply via email to