fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template <int N>
  5. struct Bar {};
  6.  
  7. int main() {
  8. // fails: Bar<99 >> 1> b;
  9. constexpr int N = 99 >> 1;
  10. Bar<N> b;
  11. return 0;
  12. }
Success #stdin #stdout 0s 3092KB
stdin
Standard input is empty
stdout
Standard output is empty