Re: [PATCH, Fortran] PR 80668: wrong error message with -finit-derived

2017-05-09 Thread Dominique d'Humières
> Le 9 mai 2017 à 18:15, Fritz Reese a écrit : > >> (1) you don’t need the lines (as in "please don’t use them") >> >> + >> +! { dg-final { cleanup-modules "pr80668" } } > > I will remove the "dg-final" lines. > >> >> (2) I don’t understand the comments after 'INTEGER,DIMENSION(:),POINTER ::

Re: [PATCH, Fortran] PR 80668: wrong error message with -finit-derived

2017-05-09 Thread Jerry DeLisle
On 05/09/2017 08:37 AM, Fritz Reese wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80668 > > All, > > The following fixes a bug exposed in PR 80668 in which the compiler > attempted to generate an initializer for components of derived types > with the POINTER attribute when compiling with

Re: [PATCH, Fortran] PR 80668: wrong error message with -finit-derived

2017-05-09 Thread Fritz Reese
> (1) you don’t need the lines (as in "please don’t use them") > > + > +! { dg-final { cleanup-modules "pr80668" } } I will remove the "dg-final" lines. > > (2) I don’t understand the comments after 'INTEGER,DIMENSION(:),POINTER :: > dist’. (2) Sorry, the comments were meant to show the error t

Re: [PATCH, Fortran] PR 80668: wrong error message with -finit-derived

2017-05-09 Thread Dominique d'Humières
Fritz, Thanks for the quick fix, IMO on the obvious side. Two minor nits: (1) you don’t need the lines (as in "please don’t use them") + +! { dg-final { cleanup-modules "pr80668" } } (2) I don’t understand the comments after 'INTEGER,DIMENSION(:),POINTER :: dist’. TIA Dominique PS The failur

[PATCH, Fortran] PR 80668: wrong error message with -finit-derived

2017-05-09 Thread Fritz Reese
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80668 All, The following fixes a bug exposed in PR 80668 in which the compiler attempted to generate an initializer for components of derived types with the POINTER attribute when compiling with -finit-derived and -finit-*=*. It is nonsensical for comp