https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115960
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- llvm/include/llvm/ADT/Optional.h is not included so llvm::Optional is not declared anywhere. GCC's error message is correct.