title: Access element in function result
body: <p>Why this Fortran code is incorrect?</p>
  
  <pre><code>function foo(x)
  real x
  real, dimension(3) :: foo
  foo = (/1, 2, 3/)
  end
  </code></pre>
  
  <p>... and in main program</p>
  
  <pre><code>print*, foo(x)(1)
  </code></pre>
  
  <p>Why we cannot access element in function result directly?</p>