public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/50537] New: explicit interface required (r178939)
@ 2011-09-27 14:18 zeccav at gmail dot com
2013-02-26 19:58 ` [Bug fortran/50537] " dominiq at lps dot ens.fr
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: zeccav at gmail dot com @ 2011-09-27 14:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50537
Bug #: 50537
Summary: explicit interface required (r178939)
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zeccav@gmail.com
! explicit interface required (r178939)
! this program violates Fortran 95 12.3.1.1 number (2) letter (e)
! this program violates Fortran 2003 12.3.1.1 number (3) letter (c)
! this program violates Fortran 2008 12.4.2.2 number (3) letter (c)
character(2) f
print *,f(1) ! erroneous
end
character(n) function f(n)
f='az'
end
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/50537] explicit interface required (r178939)
2011-09-27 14:18 [Bug fortran/50537] New: explicit interface required (r178939) zeccav at gmail dot com
@ 2013-02-26 19:58 ` dominiq at lps dot ens.fr
2013-02-27 14:01 ` burnus at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: dominiq at lps dot ens.fr @ 2013-02-26 19:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50537
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-02-26
Ever Confirmed|0 |1
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2013-02-26 19:57:48 UTC ---
The program compiles without error, even if -fwhole-file is mow the default.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/50537] explicit interface required (r178939)
2011-09-27 14:18 [Bug fortran/50537] New: explicit interface required (r178939) zeccav at gmail dot com
2013-02-26 19:58 ` [Bug fortran/50537] " dominiq at lps dot ens.fr
@ 2013-02-27 14:01 ` burnus at gcc dot gnu.org
2015-05-04 9:49 ` tkoenig at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu.org @ 2013-02-27 14:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50537
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
CC| |burnus at gcc dot gnu.org
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2013-02-27 14:00:57 UTC ---
For reference, Fortran 2008, "12.4.2.2 Explicit interface":
"A procedure other than a statement function shall have an explicit interface
if it is referenced and [...]
"(3) the procedure has a result that [...]
"(c) has a nonassumed type parameter value that is not a constant expression,"
(Side note: As it is not a constraint, a compiler is not required to diagnose
it. However, as it can detect it in this case, it should.)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/50537] explicit interface required (r178939)
2011-09-27 14:18 [Bug fortran/50537] New: explicit interface required (r178939) zeccav at gmail dot com
2013-02-26 19:58 ` [Bug fortran/50537] " dominiq at lps dot ens.fr
2013-02-27 14:01 ` burnus at gcc dot gnu.org
@ 2015-05-04 9:49 ` tkoenig at gcc dot gnu.org
2015-05-04 10:02 ` dominiq at lps dot ens.fr
2015-08-31 16:41 ` zeccav at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2015-05-04 9:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50537
Thomas Koenig <tkoenig at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tkoenig at gcc dot gnu.org
Severity|normal |enhancement
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/50537] explicit interface required (r178939)
2011-09-27 14:18 [Bug fortran/50537] New: explicit interface required (r178939) zeccav at gmail dot com
` (2 preceding siblings ...)
2015-05-04 9:49 ` tkoenig at gcc dot gnu.org
@ 2015-05-04 10:02 ` dominiq at lps dot ens.fr
2015-08-31 16:41 ` zeccav at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-05-04 10:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50537
--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Since gcc version 4.9.2 and up to trunk (6.0) I now get
pr50537_db.f90:5:24:
character(len=2) f
1
Error: Explicit interface required for 'f' at (1): result with non-constant
character length
Does it mean that this PR is now fixed?
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/50537] explicit interface required (r178939)
2011-09-27 14:18 [Bug fortran/50537] New: explicit interface required (r178939) zeccav at gmail dot com
` (3 preceding siblings ...)
2015-05-04 10:02 ` dominiq at lps dot ens.fr
@ 2015-08-31 16:41 ` zeccav at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: zeccav at gmail dot com @ 2015-08-31 16:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50537
Vittorio Zecca <zeccav at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Vittorio Zecca <zeccav at gmail dot com> ---
I found it fixed in 5.2.0
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-08-31 16:41 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-27 14:18 [Bug fortran/50537] New: explicit interface required (r178939) zeccav at gmail dot com
2013-02-26 19:58 ` [Bug fortran/50537] " dominiq at lps dot ens.fr
2013-02-27 14:01 ` burnus at gcc dot gnu.org
2015-05-04 9:49 ` tkoenig at gcc dot gnu.org
2015-05-04 10:02 ` dominiq at lps dot ens.fr
2015-08-31 16:41 ` zeccav at gmail dot com
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).