"restrict" is a keyword in C99, but not in any C++ version. So a c++
compiler should accept it (and maybe issue a warning).
It's still a good idea to change it, though.
On 26 September 2012 11:56, Paolo Crosetto <email address hidden> wrote:
> Public bug reported:
>
> Dear all,
> I am compiling dolfin with an IBM XL compiler, and I found a problem with the method 'restrict' in GenericFunctions.h, and in other places in the code. In fact restrict is a special keyword for IBM compilers, an alias for the __restrict keyword.
>
> ** Affects: dolfin
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of DOLFIN
> Team, which is subscribed to DOLFIN.
> https://bugs.launchpad.net/bugs/1056741
>
> Title:
> name clash with IBM XL C/C++ compilers
>
> Status in DOLFIN:
> New
>
> Bug description:
> Dear all,
> I am compiling dolfin with an IBM XL compiler, and I found a problem with the method 'restrict' in GenericFunctions.h, and in other places in the code. In fact restrict is a special keyword for IBM compilers, an alias for the __restrict keyword.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dolfin/+bug/1056741/+subscriptions
"restrict" is a keyword in C99, but not in any C++ version. So a c++
compiler should accept it (and maybe issue a warning).
It's still a good idea to change it, though.
On 26 September 2012 11:56, Paolo Crosetto <email address hidden> wrote: /bugs.launchpad .net/bugs/ 1056741 /bugs.launchpad .net/dolfin/ +bug/1056741/ +subscriptions
> Public bug reported:
>
> Dear all,
> I am compiling dolfin with an IBM XL compiler, and I found a problem with the method 'restrict' in GenericFunctions.h, and in other places in the code. In fact restrict is a special keyword for IBM compilers, an alias for the __restrict keyword.
>
> ** Affects: dolfin
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of DOLFIN
> Team, which is subscribed to DOLFIN.
> https:/
>
> Title:
> name clash with IBM XL C/C++ compilers
>
> Status in DOLFIN:
> New
>
> Bug description:
> Dear all,
> I am compiling dolfin with an IBM XL compiler, and I found a problem with the method 'restrict' in GenericFunctions.h, and in other places in the code. In fact restrict is a special keyword for IBM compilers, an alias for the __restrict keyword.
>
> To manage notifications about this bug go to:
> https:/