This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29962] Initialization expressions checking in gfc_intrinsic_func_interface
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jun 2007 16:13:38 -0000
- Subject: [Bug fortran/29962] Initialization expressions checking in gfc_intrinsic_func_interface
- References: <bug-29962-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from burnus at gcc dot gnu dot org 2007-06-23 16:13 -------
TRANSFER is rejected at initialization expression (w/ -std=f95 & f2003) but it
is allowed per 7.1.6.1 Constant expression / initialization expression (F95
standard):
"(5) A reference to one of the transformational functions REPEAT, RESHAPE,
SELECTED_INT_KIND, SELECTED_REAL_KIND, TRANSFER, or TRIM, where each
argument is an initialization expression,"
gfortran -std=f95 rejects it with:
Evaluation of nonstandard initialization expression
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29962