This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/43310] -pedantic errors on valid code involving PARAMETERs initialized to intrinsic function result



------- Comment #4 from giese025 at umn dot edu  2010-03-10 01:17 -------
(In reply to comment #3)
> If one is trying to adhere to a Standard then use -std=.
> -pedantic simply should not be used with gfortran.
> 
> As for documenting this, see arith.c, the PR's listed
> there and the mailing list.
> 

I think Dominique was referring to the documentation for the "regular people",
i.e., Sec. (4.3) from the gfortran manual, which is where his quote comes from,
and which was the quote that initially caused me to include -pedantic as one of
the flags that I (now previously) used when compiling with gfortran.

Sec. (4.3) should be changed so that

"Valid FORTRAN 95 programs should compile properly with or without this option.
However, without this option, certain GNU extensions and traditional Fortran
features are supported as well. With this option, many of them are rejected."

instead reads

"Not all valid FORTRAN 95 programs will compile properly when using this
option.  If you want to ensure compliance with one of the FORTRAN standards,
please see the -std= option."


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]