// PR c++/69091 // { dg-do compile { target c++14 } } template struct Option {}; template auto operator|(Option, OptionsRhs) { return Value; } enum canine_t { no, yes }; Option cat; Option dog; template void f(T) { cat | dog; } struct A {}; int main() { f(A{}); return 0; }