public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/20892] New: error needed
@ 2005-04-08 16:04 jv244 at cam dot ac dot uk
2005-05-19 17:15 ` [Bug fortran/20892] dummy procedure can't be generic tobi at gcc dot gnu dot org
2005-09-30 20:49 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 7+ messages in thread
From: jv244 at cam dot ac dot uk @ 2005-04-08 16:04 UTC (permalink / raw)
To: gcc-bugs
The following is non-standard and the compiler should probably generate a
warning/error with '-pedantic -std=f95'
SUBROUTINE TEST(S)
INTERFACE S
REAL FUNCTION S_r(R)
REAL :: r
END FUNCTION
REAL FUNCTION S_i(I)
INTEGER :: I
END FUNCTION
END INTERFACE
END SUBROUTINE TEST
END
--
Summary: error needed
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jv244 at cam dot ac dot uk
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20892
^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <bug-20892-6642@http.gcc.gnu.org/bugzilla/>]
* [Bug fortran/20892] dummy procedure can't be generic
[not found] <bug-20892-6642@http.gcc.gnu.org/bugzilla/>
@ 2005-12-31 20:00 ` pinskia at gcc dot gnu dot org
2006-05-21 20:50 ` fxcoudert at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-12-31 20:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2005-12-31 19:59 -------
And now just accepts the code without an ICE.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|ice-on-invalid-code |
Last reconfirmed|2005-09-30 20:49:19 |2005-12-31 19:59:59
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20892
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/20892] dummy procedure can't be generic
[not found] <bug-20892-6642@http.gcc.gnu.org/bugzilla/>
2005-12-31 20:00 ` pinskia at gcc dot gnu dot org
@ 2006-05-21 20:50 ` fxcoudert at gcc dot gnu dot org
2006-07-05 15:22 ` fxcoudert at gcc dot gnu dot org
2006-07-24 21:03 ` fxcoudert at gcc dot gnu dot org
3 siblings, 0 replies; 7+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-05-21 20:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from fxcoudert at gcc dot gnu dot org 2006-05-21 20:49 -------
Proposed patch (wording from the g95 error message). With that patch, compiling
the testcase is a bit noisy (additional errors after the first error message),
I'll try to find a cleaner solution.
Index: interface.c
===================================================================
--- interface.c (revision 113849)
+++ interface.c (working copy)
@@ -217,6 +217,13 @@
&& gfc_add_generic (&sym->attr, sym->name, NULL) == FAILURE)
return MATCH_ERROR;
+ if (sym->attr.dummy)
+ {
+ gfc_error ("Dummy procedure '%s' at %C cannot have a "
+ "generic interface", sym->name);
+ return MATCH_ERROR;
+ }
+
current_interface.sym = gfc_new_block = sym;
break;
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fxcoudert at gcc dot gnu dot
| |org
AssignedTo|unassigned at gcc dot gnu |fxcoudert at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Keywords| |patch
Last reconfirmed|2005-12-31 19:59:59 |2006-05-21 20:49:21
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20892
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/20892] dummy procedure can't be generic
[not found] <bug-20892-6642@http.gcc.gnu.org/bugzilla/>
2005-12-31 20:00 ` pinskia at gcc dot gnu dot org
2006-05-21 20:50 ` fxcoudert at gcc dot gnu dot org
@ 2006-07-05 15:22 ` fxcoudert at gcc dot gnu dot org
2006-07-24 21:03 ` fxcoudert at gcc dot gnu dot org
3 siblings, 0 replies; 7+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-07-05 15:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from fxcoudert at gcc dot gnu dot org 2006-07-05 15:22 -------
Subject: Bug 20892
Author: fxcoudert
Date: Wed Jul 5 15:22:26 2006
New Revision: 115201
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115201
Log:
PR fortran/20892
* interface.c (gfc_match_interface): Don't allow dummy procedures
to have a generic interface.
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/interface.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20892
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/20892] dummy procedure can't be generic
[not found] <bug-20892-6642@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2006-07-05 15:22 ` fxcoudert at gcc dot gnu dot org
@ 2006-07-24 21:03 ` fxcoudert at gcc dot gnu dot org
3 siblings, 0 replies; 7+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-07-24 21:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from fxcoudert at gcc dot gnu dot org 2006-07-24 21:03 -------
Fixed.
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Known to fail|4.1.2 |
Known to work|4.2.0 |4.2.0 4.1.2
Resolution| |FIXED
Summary|[4.1 only] dummy procedure |dummy procedure can't be
|can't be generic |generic
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20892
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-07-24 21:03 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-08 16:04 [Bug fortran/20892] New: error needed jv244 at cam dot ac dot uk
2005-05-19 17:15 ` [Bug fortran/20892] dummy procedure can't be generic tobi at gcc dot gnu dot org
2005-09-30 20:49 ` pinskia at gcc dot gnu dot org
[not found] <bug-20892-6642@http.gcc.gnu.org/bugzilla/>
2005-12-31 20:00 ` pinskia at gcc dot gnu dot org
2006-05-21 20:50 ` fxcoudert at gcc dot gnu dot org
2006-07-05 15:22 ` fxcoudert at gcc dot gnu dot org
2006-07-24 21:03 ` fxcoudert at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).