public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/103782] New: internal error occurs when overloading intrinsic
@ 2021-12-20 21:51 urbanjost at comcast dot net
  2021-12-20 22:07 ` [Bug fortran/103782] [9/10/11/12 Regression] " pinskia at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: urbanjost at comcast dot net @ 2021-12-20 21:51 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103782

            Bug ID: 103782
           Summary: internal error occurs when overloading intrinsic
           Product: gcc
           Version: 10.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: urbanjost at comcast dot net
  Target Milestone: ---

program runtest
implicit none
! 
! if overload an intrinsic like dble or real this fails
!
!   internal compiler error: in gfc_trans_array_constructor_subarray, at
fortran/trans-array.c:1876
!   Please submit a full bug report,
!   with preprocessed source if appropriate.
!
! if change name DBLE to SOMETHING it works
!
! works with nvfortran(1) and ifort(1)

interface dble;    procedure to_double;  end interface

write(*,*)dble([10.0d0,20.0d0]) - [10.0d0,20.0d0]
contains

elemental function to_double(valuein) result(d_out)
doubleprecision,intent(in) :: valuein
doubleprecision            :: d_out
    d_out=valuein
end function to_double

end program runtest

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

end of thread, other threads:[~2022-01-23 21:54 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-20 21:51 [Bug fortran/103782] New: internal error occurs when overloading intrinsic urbanjost at comcast dot net
2021-12-20 22:07 ` [Bug fortran/103782] [9/10/11/12 Regression] " pinskia at gcc dot gnu.org
2021-12-21  8:25 ` [Bug fortran/103782] [9/10/11/12 Regression] internal error occurs when overloading intrinsic since r9-1566-g87c789f1c0b2df41 marxin at gcc dot gnu.org
2022-01-04 12:53 ` rguenth at gcc dot gnu.org
2022-01-05 21:42 ` anlauf at gcc dot gnu.org
2022-01-13 20:57 ` anlauf at gcc dot gnu.org
2022-01-14 18:22 ` cvs-commit at gcc dot gnu.org
2022-01-15  0:21 ` urbanjost at comcast dot net
2022-01-16 20:41 ` cvs-commit at gcc dot gnu.org
2022-01-21 22:37 ` cvs-commit at gcc dot gnu.org
2022-01-23 21:53 ` cvs-commit at gcc dot gnu.org
2022-01-23 21:54 ` anlauf 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).