public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/50553] New: statement function cannot be target (r178939)
@ 2011-09-28  9:15 zeccav at gmail dot com
  2011-09-28 20:59 ` [Bug fortran/50553] " janus at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: zeccav at gmail dot com @ 2011-09-28  9:15 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50553

             Bug #: 50553
           Summary: statement function cannot be target (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


! statement function cannot be target (r178939) 
      f(x)=x
      target f
      end


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/50553] statement function cannot be target (r178939)
  2011-09-28  9:15 [Bug fortran/50553] New: statement function cannot be target (r178939) zeccav at gmail dot com
@ 2011-09-28 20:59 ` janus at gcc dot gnu.org
  2011-09-28 21:34 ` janus at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: janus at gcc dot gnu.org @ 2011-09-28 20:59 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50553

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
           Keywords|                            |accepts-invalid
   Last reconfirmed|                            |2011-09-28
                 CC|                            |janus at gcc dot gnu.org
         AssignedTo|unassigned at gcc dot       |janus at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #1 from janus at gcc dot gnu.org 2011-09-28 20:13:50 UTC ---
Simple patch:


Index: gcc/fortran/symbol.c
===================================================================
--- gcc/fortran/symbol.c        (revision 179310)
+++ gcc/fortran/symbol.c        (working copy)
@@ -684,6 +684,7 @@
        {
        case PROC_ST_FUNCTION:
          conf2 (dummy);
+         conf2 (target);
          break;

        case PROC_MODULE:


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/50553] statement function cannot be target (r178939)
  2011-09-28  9:15 [Bug fortran/50553] New: statement function cannot be target (r178939) zeccav at gmail dot com
  2011-09-28 20:59 ` [Bug fortran/50553] " janus at gcc dot gnu.org
@ 2011-09-28 21:34 ` janus at gcc dot gnu.org
  2011-09-29 12:10 ` janus at gcc dot gnu.org
  2011-09-29 12:14 ` janus at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: janus at gcc dot gnu.org @ 2011-09-28 21:34 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50553

--- Comment #2 from janus at gcc dot gnu.org 2011-09-28 21:28:59 UTC ---
The patch regtests cleanly. I'm going to commit as obvious.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/50553] statement function cannot be target (r178939)
  2011-09-28  9:15 [Bug fortran/50553] New: statement function cannot be target (r178939) zeccav at gmail dot com
  2011-09-28 20:59 ` [Bug fortran/50553] " janus at gcc dot gnu.org
  2011-09-28 21:34 ` janus at gcc dot gnu.org
@ 2011-09-29 12:10 ` janus at gcc dot gnu.org
  2011-09-29 12:14 ` janus at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: janus at gcc dot gnu.org @ 2011-09-29 12:10 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50553

--- Comment #3 from janus at gcc dot gnu.org 2011-09-29 11:57:40 UTC ---
Author: janus
Date: Thu Sep 29 11:57:35 2011
New Revision: 179345

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179345
Log:
2011-09-29  Janus Weil  <janus@gcc.gnu.org>

    PR fortran/50547
    * resolve.c (resolve_formal_arglist): Fix pureness check for dummy
    functions.

    PR fortran/50553
    * symbol.c (check_conflict): Forbid TARGET attribute for statement
    functions.


2011-09-29  Janus Weil  <janus@gcc.gnu.org>

    PR fortran/50547
    * gfortran.dg/pure_formal_proc_3.f90: New.

    PR fortran/50553
    * gfortran.dg/stfunc_7.f90: New.

Added:
    trunk/gcc/testsuite/gfortran.dg/pure_formal_proc_3.f90
    trunk/gcc/testsuite/gfortran.dg/stfunc_7.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/resolve.c
    trunk/gcc/fortran/symbol.c
    trunk/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/50553] statement function cannot be target (r178939)
  2011-09-28  9:15 [Bug fortran/50553] New: statement function cannot be target (r178939) zeccav at gmail dot com
                   ` (2 preceding siblings ...)
  2011-09-29 12:10 ` janus at gcc dot gnu.org
@ 2011-09-29 12:14 ` janus at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: janus at gcc dot gnu.org @ 2011-09-29 12:14 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50553

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from janus at gcc dot gnu.org 2011-09-29 12:10:22 UTC ---
Fixed with r179345. Closing.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-09-29 12:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-28  9:15 [Bug fortran/50553] New: statement function cannot be target (r178939) zeccav at gmail dot com
2011-09-28 20:59 ` [Bug fortran/50553] " janus at gcc dot gnu.org
2011-09-28 21:34 ` janus at gcc dot gnu.org
2011-09-29 12:10 ` janus at gcc dot gnu.org
2011-09-29 12:14 ` janus at gcc dot gnu.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).