------- Comment #1 from pinskia at gcc dot gnu dot org  2007-01-28 00:38 -------
Created an attachment (id=12973)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12973&action=view)
patch which needs testing and a little cleanup including documentation/comment
fixes

I quickly tested this on:
template <typename t>
int Birkhoff_with_Vol_para(int n)
{
t I;
#pragma omp atomic
I++;
}

int f(int a)
{
  return Birkhoff_with_Vol_para<int>(a);
}

And I got the correct result, there still needs some cleanup of the patch, the
OMP_ATOMIC_TP_* macros need their comments fixed as I just copied from
STATIC_ASSERT_*.  I need to check on line numbering issues but other than those
two, it should work.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30619

Reply via email to