title: Error: Expected PARAMETER symbol in complex constant at (1)
body: <p>I am writing a small piece of Fortran 90 code to compute some quantities using complex variables.</p>
  
  <p>I have a subroutine with the following instructions:</p>
  
  <pre><code>complex, dimension(3) :: v
  integer :: i
  real:: tmp
  
  
  do i = 1,3
    tmp = vg(i)
    v(i) = (tmp, 0.0) 
  enddo
  </code></pre>
  
  <p><code>v</code> is a complex array of length 3. <code>vg</code> is an array of length 3 too whose elements are real.</p>
  
  <p>When I compile the above code with gfortran 4.7.3 I get the following error:</p>
  
  <pre><code>v(i) =   (tmp,0.0) 
  
  Error: Expected PARAMETER symbol in complex constant at (1)
  </code></pre>
  
  <p>I do not understand what's the problem.</p>