This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/13912] [gfortran] Does not accept negative constants
- From: "Tobias dot Schlueter at physik dot uni-muenchen dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Apr 2004 12:36:08 -0000
- Subject: [Bug fortran/13912] [gfortran] Does not accept negative constants
- References: <20040129020336.13912.bdavis9659@comcast.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From Tobias dot Schlueter at physik dot uni-muenchen dot de 2004-04-22 12:36 -------
It is not valid Fortran, but I vaguely remember that there has been some
discussion on this in the past, possibly in the pre-fork g95 days. It is a
common extension and shouldn't be too hard to implement, though. Of course the
workaround is simple: place parentheses (-1).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13912