This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30880] Derived types with default value -- function with ENTRY: rejected at compile time
- 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: 20 Feb 2007 14:14:13 -0000
- Subject: [Bug fortran/30880] Derived types with default value -- function with ENTRY: rejected at compile time
- References: <bug-30880-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from burnus at gcc dot gnu dot org 2007-02-20 14:14 -------
Error message:
USE M1
1
Error: Dummy 'd1' at (1) cannot have an initializer
Works with g95, nagf95 and ifort. It also works with gfortran if one changes
the ENTRY E1 into a separate function or if one removes the default initializer
for the derived type T1.
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |rejects-valid
Last reconfirmed|0000-00-00 00:00:00 |2007-02-20 14:14:13
date| |
Summary|incorrect error message for |Derived types with default
|valid code |value -- function with
| |ENTRY: rejected at compile
| |time
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30880