fork(6) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template<int N> struct SomeTemplate
  5. {
  6. enum {n = N};
  7. int SomeMember;
  8. };
  9.  
  10. int main() {
  11. SomeTemplate<-5> foo;
  12. typedef typeof(foo) t;
  13. SomeTemplate<t::n> bar;
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 2680KB
stdin
Standard input is empty
stdout
Standard output is empty