public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug fortran/20856] New: error needed @ 2005-04-08 15:54 jv244 at cam dot ac dot uk 2005-04-10 8:46 ` [Bug fortran/20856] " fxcoudert at gcc dot gnu dot org ` (2 more replies) 0 siblings, 3 replies; 7+ messages in thread From: jv244 at cam dot ac dot uk @ 2005-04-08 15:54 UTC (permalink / raw) To: gcc-bugs The following is non-standard and the compiler should probably generate a warning/error with '-pedantic -std=f95' FUNCTION X() RESULT(Y) REAL, SAVE :: Y END FUNCTION X 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=20856 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/20856] error needed 2005-04-08 15:54 [Bug fortran/20856] New: error needed jv244 at cam dot ac dot uk @ 2005-04-10 8:46 ` fxcoudert at gcc dot gnu dot org 2005-04-22 14:31 ` [Bug fortran/20856] function result may not be saved tobi at gcc dot gnu dot org 2005-09-30 17:10 ` pinskia at gcc dot gnu dot org 2 siblings, 0 replies; 7+ messages in thread From: fxcoudert at gcc dot gnu dot org @ 2005-04-10 8:46 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-04-10 08:46 ------- I'm not sure what the error should be for that one. Is the problem the SAVE attribute given to Y? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20856 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/20856] function result may not be saved 2005-04-08 15:54 [Bug fortran/20856] New: error needed jv244 at cam dot ac dot uk 2005-04-10 8:46 ` [Bug fortran/20856] " fxcoudert at gcc dot gnu dot org @ 2005-04-22 14:31 ` tobi at gcc dot gnu dot org 2005-09-30 17:10 ` pinskia at gcc dot gnu dot org 2 siblings, 0 replies; 7+ messages in thread From: tobi at gcc dot gnu dot org @ 2005-04-22 14:31 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From tobi at gcc dot gnu dot org 2005-04-22 14:30 ------- That's the problem. I'm fairly sure Joost knows the problems for all these bugs ... -- What |Removed |Added ---------------------------------------------------------------------------- CC| |tobi at gcc dot gnu dot org Status|UNCONFIRMED |NEW Ever Confirmed| |1 Keywords| |accepts-invalid Last reconfirmed|0000-00-00 00:00:00 |2005-04-22 14:30:57 date| | Summary|error needed |function result may not be | |saved http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20856 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/20856] function result may not be saved 2005-04-08 15:54 [Bug fortran/20856] New: error needed jv244 at cam dot ac dot uk 2005-04-10 8:46 ` [Bug fortran/20856] " fxcoudert at gcc dot gnu dot org 2005-04-22 14:31 ` [Bug fortran/20856] function result may not be saved tobi at gcc dot gnu dot org @ 2005-09-30 17:10 ` pinskia at gcc dot gnu dot org 2 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-09-30 17:10 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-30 17:10 ------- In fact we keep the value of Y still: x () { real4 D.480; static real4 y; y = 1.0e+0; D.480 = y; return D.480; } -- What |Removed |Added ---------------------------------------------------------------------------- GCC target triplet|i686-pc-linux-gnu | Last reconfirmed|2005-07-22 19:55:27 |2005-09-30 17:10:24 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20856 ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <bug-20856-6642@http.gcc.gnu.org/bugzilla/>]
* [Bug fortran/20856] function result may not be saved [not found] <bug-20856-6642@http.gcc.gnu.org/bugzilla/> @ 2005-10-12 20:05 ` cvs-commit at gcc dot gnu dot org 2005-10-14 4:53 ` cvs-commit at gcc dot gnu dot org 2005-10-14 13:12 ` pinskia at gcc dot gnu dot org 2 siblings, 0 replies; 7+ messages in thread From: cvs-commit at gcc dot gnu dot org @ 2005-10-12 20:05 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from cvs-commit at gcc dot gnu dot org 2005-10-12 20:05 ------- Subject: Bug 20856 CVSROOT: /cvs/gcc Module name: gcc Changes by: pault@gcc.gnu.org 2005-10-12 20:05:04 Modified files: gcc/fortran : symbol.c ChangeLog gcc/testsuite : ChangeLog Added files: gcc/testsuite/gfortran.dg: save_common.f90 save_result.f90 Log message: 2005-10-12 Paul Thomas <pault@gcc.gnu.org> PR fortran/20847 PR fortran/20856 * symbol.c (check_conflict): Prevent common variables and function results from having the SAVE attribute,as required by the standard. 2005-10-12 Paul Thomas <pault@gcc.gnu.org> PR fortran/20847 gfortran.dg/save_common.f90: New test. PR fortran/20856 gfortran.dg/save_result.f90: New test. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/symbol.c.diff?cvsroot=gcc&r1=1.36&r2=1.37 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.581&r2=1.582 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/save_common.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/save_result.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.6179&r2=1.6180 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20856 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/20856] function result may not be saved [not found] <bug-20856-6642@http.gcc.gnu.org/bugzilla/> 2005-10-12 20:05 ` cvs-commit at gcc dot gnu dot org @ 2005-10-14 4:53 ` cvs-commit at gcc dot gnu dot org 2005-10-14 13:12 ` pinskia at gcc dot gnu dot org 2 siblings, 0 replies; 7+ messages in thread From: cvs-commit at gcc dot gnu dot org @ 2005-10-14 4:53 UTC (permalink / raw) To: gcc-bugs ------- Comment #5 from cvs-commit at gcc dot gnu dot org 2005-10-14 04:53 ------- Subject: Bug 20856 CVSROOT: /cvs/gcc Module name: gcc Branch: gcc-4_0-branch Changes by: pault@gcc.gnu.org 2005-10-14 04:53:30 Modified files: gcc/fortran : symbol.c trans-types.c decl.c ChangeLog gcc/testsuite : ChangeLog Added files: gcc/testsuite/gfortran.dg: automatic_char_len_1.f90 save_common.f90 save_result.f90 derived_pointer_recursion.f90 Log message: 2005-10-14 Paul Thomas <pault@gcc.gnu.org> PR fortran/20847 PR fortran/20856 * symbol.c (check_conflict): Prevent common variables and function results from having the SAVE attribute,as required by the standard. PR fortran/24092 * trans-types.c (gfc_get_derived_type): Insert code to obtain backend declaration for derived types, building if necessary. Return the derived type if the fields have been built by this process. Otherwise, continue as before but using the already obtained backend_decls for the derived type components. Change the gcc_assert to act on the field. PR fortran/18082 * decl.c (variable_decl): Make a new copy of the character length for each variable, when the expression is not a constant. 2005-10-14 Paul Thomas <pault@gcc.gnu.org> PR fortran/18082 * gfortran.dg/automatic_char_len_1.f90: New test. PR fortran/20847 * gfortran.dg/save_common.f90: New test. PR fortran/20856 * gfortran.dg/save_result.f90: New test. PR fortran/24092 * gfortran.dg/derived_pointer_recursion.f90: New test. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/symbol.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.26.2.5&r2=1.26.2.6 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-types.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.37.10.7&r2=1.37.10.8 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/decl.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.31.2.4&r2=1.31.2.5 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.335.2.128&r2=1.335.2.129 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/automatic_char_len_1.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.4.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/save_common.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.2.4.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/save_result.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.2.4.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/derived_pointer_recursion.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.4.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.453&r2=1.5084.2.454 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20856 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/20856] function result may not be saved [not found] <bug-20856-6642@http.gcc.gnu.org/bugzilla/> 2005-10-12 20:05 ` cvs-commit at gcc dot gnu dot org 2005-10-14 4:53 ` cvs-commit at gcc dot gnu dot org @ 2005-10-14 13:12 ` pinskia at gcc dot gnu dot org 2 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-10-14 13:12 UTC (permalink / raw) To: gcc-bugs ------- Comment #6 from pinskia at gcc dot gnu dot org 2005-10-14 13:12 ------- Fixed in 4.0.3. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Target Milestone|--- |4.0.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20856 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-10-14 13:12 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-04-08 15:54 [Bug fortran/20856] New: error needed jv244 at cam dot ac dot uk 2005-04-10 8:46 ` [Bug fortran/20856] " fxcoudert at gcc dot gnu dot org 2005-04-22 14:31 ` [Bug fortran/20856] function result may not be saved tobi at gcc dot gnu dot org 2005-09-30 17:10 ` pinskia at gcc dot gnu dot org [not found] <bug-20856-6642@http.gcc.gnu.org/bugzilla/> 2005-10-12 20:05 ` cvs-commit at gcc dot gnu dot org 2005-10-14 4:53 ` cvs-commit at gcc dot gnu dot org 2005-10-14 13:12 ` pinskia 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).