fork(1) download
  1. template <int n>
  2. struct S { };
  3.  
  4. template <const double* const pVar>
  5. double fun()
  6. {
  7. static const int n = (int)*pVar * 3;
  8. int a[n];
  9. S<(int)*pVar> s;
  10. return *pVar;
  11. }
  12.  
  13. constexpr double param = 1.2;
  14.  
  15. int main()
  16. {
  17. double value = fun<&param>();
  18. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty