public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/52864] New: [4.6/4.7/4.8 Regression] Assignment to pointer component for INTENT(IN) dummy argument
@ 2012-04-04 13:17 burnus at gcc dot gnu.org
  2012-04-04 13:19 ` [Bug fortran/52864] " burnus at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: burnus at gcc dot gnu.org @ 2012-04-04 13:17 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52864
           Summary: [4.6/4.7/4.8 Regression] Assignment to pointer
                    component for INTENT(IN) dummy argument
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org


Reported by Vladimír at
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/0869abb167bf5680

The following program is rejected since GCC 4.6; it is related to PR 50684 but
not fixed by that patch.

The following program is rejected with:

Error: Dummy argument 'd' with INTENT(IN) in variable definition
       context (assignment) at (1)


     program test
        type PoisFFT_Solver3D
          complex, dimension(:,:,:),&!contiguous,
                          pointer :: work => null()
        end type PoisFFT_Solver3D
     contains
     subroutine PoisFFT_Solver3D_FullPeriodic(D, Phi, RHS)
       type(PoisFFT_Solver3D), intent(in) :: D
       D%work(i,j,k) = 0.0
     end subroutine
     end


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

end of thread, other threads:[~2012-05-03  7:41 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-04 13:17 [Bug fortran/52864] New: [4.6/4.7/4.8 Regression] Assignment to pointer component for INTENT(IN) dummy argument burnus at gcc dot gnu.org
2012-04-04 13:19 ` [Bug fortran/52864] " burnus at gcc dot gnu.org
2012-04-04 14:23 ` burnus at gcc dot gnu.org
2012-04-11 22:46 ` nnc at lanl dot gov
2012-04-12  9:52 ` burnus at gcc dot gnu.org
2012-04-13 13:15 ` rguenth at gcc dot gnu.org
2012-04-16 21:48 ` burnus at gcc dot gnu.org
2012-05-02 12:52 ` burnus at gcc dot gnu.org
2012-05-02 12:53 ` burnus at gcc dot gnu.org
2012-05-03  7:19 ` burnus at gcc dot gnu.org
2012-05-03  7:41 ` burnus 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).