public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug fortran/45338] Failure on interfacing a function passed as an argument as a custom operator [not found] <bug-45338-4@http.gcc.gnu.org/bugzilla/> @ 2010-12-29 22:56 ` tkoenig at gcc dot gnu.org 2010-12-30 16:34 ` tkoenig at gcc dot gnu.org ` (4 subsequent siblings) 5 siblings, 0 replies; 8+ messages in thread From: tkoenig at gcc dot gnu.org @ 2010-12-29 22:56 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45338 --- Comment #2 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2010-12-29 22:56:32 UTC --- Created attachment 22868 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22868 Tentative patch Sounds like the referenced attribute isn't set correctly. We could try setting it during resolution, like this. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/45338] Failure on interfacing a function passed as an argument as a custom operator [not found] <bug-45338-4@http.gcc.gnu.org/bugzilla/> 2010-12-29 22:56 ` [Bug fortran/45338] Failure on interfacing a function passed as an argument as a custom operator tkoenig at gcc dot gnu.org @ 2010-12-30 16:34 ` tkoenig at gcc dot gnu.org 2010-12-31 11:20 ` tkoenig at gcc dot gnu.org ` (3 subsequent siblings) 5 siblings, 0 replies; 8+ messages in thread From: tkoenig at gcc dot gnu.org @ 2010-12-30 16:34 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45338 Thomas Koenig <tkoenig at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |tkoenig at gcc dot gnu.org AssignedTo|unassigned at gcc dot |tkoenig at gcc dot gnu.org |gnu.org | ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/45338] Failure on interfacing a function passed as an argument as a custom operator [not found] <bug-45338-4@http.gcc.gnu.org/bugzilla/> 2010-12-29 22:56 ` [Bug fortran/45338] Failure on interfacing a function passed as an argument as a custom operator tkoenig at gcc dot gnu.org 2010-12-30 16:34 ` tkoenig at gcc dot gnu.org @ 2010-12-31 11:20 ` tkoenig at gcc dot gnu.org 2010-12-31 11:35 ` tkoenig at gcc dot gnu.org ` (2 subsequent siblings) 5 siblings, 0 replies; 8+ messages in thread From: tkoenig at gcc dot gnu.org @ 2010-12-31 11:20 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45338 --- Comment #3 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2010-12-31 11:20:26 UTC --- Author: tkoenig Date: Fri Dec 31 11:20:22 2010 New Revision: 168366 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168366 Log: 2010-12-31 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/45338 * resolve.c (resolve_operator): Mark function for user-defined operator as referenced. 2010-12-31 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/45338 * gfortran.dg/userdef_operator_2.f90: New test case. Added: trunk/gcc/testsuite/gfortran.dg/userdef_operator_2.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/resolve.c trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/45338] Failure on interfacing a function passed as an argument as a custom operator [not found] <bug-45338-4@http.gcc.gnu.org/bugzilla/> ` (2 preceding siblings ...) 2010-12-31 11:20 ` tkoenig at gcc dot gnu.org @ 2010-12-31 11:35 ` tkoenig at gcc dot gnu.org 2011-01-02 21:58 ` tkoenig at gcc dot gnu.org 2011-01-02 21:59 ` tkoenig at gcc dot gnu.org 5 siblings, 0 replies; 8+ messages in thread From: tkoenig at gcc dot gnu.org @ 2010-12-31 11:35 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45338 Thomas Koenig <tkoenig at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |4.6.0 Known to fail|4.6.0 | --- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2010-12-31 11:34:45 UTC --- Fixed on trunk, backport to 4.5 pending. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/45338] Failure on interfacing a function passed as an argument as a custom operator [not found] <bug-45338-4@http.gcc.gnu.org/bugzilla/> ` (3 preceding siblings ...) 2010-12-31 11:35 ` tkoenig at gcc dot gnu.org @ 2011-01-02 21:58 ` tkoenig at gcc dot gnu.org 2011-01-02 21:59 ` tkoenig at gcc dot gnu.org 5 siblings, 0 replies; 8+ messages in thread From: tkoenig at gcc dot gnu.org @ 2011-01-02 21:58 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45338 --- Comment #5 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2011-01-02 21:58:06 UTC --- Author: tkoenig Date: Sun Jan 2 21:58:03 2011 New Revision: 168410 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168410 Log: 2011-02-01 Thomas Koenig <tkoenig@gcc.gnu.org> Backport from mainline PR fortran/45338 * resolve.c (resolve_operator): Mark function for user-defined operator as referenced. 2011-02-01 Thomas Koenig <tkoenig@gcc.gnu.org> Backport from mainline PR fortran/45338 * gfortran.dg/userdef_operator_2.f90: New test case. Added: branches/gcc-4_5-branch/gcc/testsuite/gfortran.dg/userdef_operator_2.f90 Modified: branches/gcc-4_5-branch/gcc/fortran/ChangeLog branches/gcc-4_5-branch/gcc/fortran/resolve.c branches/gcc-4_5-branch/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/45338] Failure on interfacing a function passed as an argument as a custom operator [not found] <bug-45338-4@http.gcc.gnu.org/bugzilla/> ` (4 preceding siblings ...) 2011-01-02 21:58 ` tkoenig at gcc dot gnu.org @ 2011-01-02 21:59 ` tkoenig at gcc dot gnu.org 5 siblings, 0 replies; 8+ messages in thread From: tkoenig at gcc dot gnu.org @ 2011-01-02 21:59 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45338 Thomas Koenig <tkoenig at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #6 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2011-01-02 21:59:12 UTC --- Fixed on trunk and 4.5. Closing. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/45338] New: Failure on interfacing a function passed as an argument as a custom operator @ 2010-08-19 10:22 sds50 at cam dot ac dot uk 2010-08-19 13:09 ` [Bug fortran/45338] " kargl at gcc dot gnu dot org 2010-08-19 14:11 ` burnus at gcc dot gnu dot org 0 siblings, 2 replies; 8+ messages in thread From: sds50 at cam dot ac dot uk @ 2010-08-19 10:22 UTC (permalink / raw) To: gcc-bugs In the testcase below, compiled with: gfortran -c test.f90 gfortran suffers an internal compiler error: internal compiler error: in gfc_gen_symbol_decl, at fortran/trans-decl.c:893 If the commenting on the marked line is removed, then the code compiles fine. I have tested this case with versions 4.3.2, 4.4.1 and 4.6 (experimental, from svn trunk last night). It works correctly using ifort, PGI and pathscale compilers. --------------------------------------- module test_mod implicit none contains subroutine test_fn (cmp) interface operator(.myop.) pure function cmp (a, b) result(ret) integer, intent(in) :: a, b logical ret end function end interface integer :: a, b !print*, cmp(a, b) ! If this line is commented out, gfortran has an ! internal compiler error print*, a .myop. b end subroutine end module -- Summary: Failure on interfacing a function passed as an argument as a custom operator Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sds50 at cam dot ac dot uk http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45338 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/45338] Failure on interfacing a function passed as an argument as a custom operator 2010-08-19 10:22 [Bug fortran/45338] New: " sds50 at cam dot ac dot uk @ 2010-08-19 13:09 ` kargl at gcc dot gnu dot org 2010-08-19 14:11 ` burnus at gcc dot gnu dot org 1 sibling, 0 replies; 8+ messages in thread From: kargl at gcc dot gnu dot org @ 2010-08-19 13:09 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from kargl at gcc dot gnu dot org 2010-08-19 13:08 ------- *** Bug 45339 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45338 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/45338] Failure on interfacing a function passed as an argument as a custom operator 2010-08-19 10:22 [Bug fortran/45338] New: " sds50 at cam dot ac dot uk 2010-08-19 13:09 ` [Bug fortran/45338] " kargl at gcc dot gnu dot org @ 2010-08-19 14:11 ` burnus at gcc dot gnu dot org 1 sibling, 0 replies; 8+ messages in thread From: burnus at gcc dot gnu dot org @ 2010-08-19 14:11 UTC (permalink / raw) To: gcc-bugs -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- OtherBugsDependingO| |32834 nThis| | Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |rejects-valid Known to fail| |4.2.1 4.1.2 4.3.4 4.4.0 | |4.5.0 4.6.0 Last reconfirmed|0000-00-00 00:00:00 |2010-08-19 14:11:24 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45338 ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-01-02 21:59 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-45338-4@http.gcc.gnu.org/bugzilla/> 2010-12-29 22:56 ` [Bug fortran/45338] Failure on interfacing a function passed as an argument as a custom operator tkoenig at gcc dot gnu.org 2010-12-30 16:34 ` tkoenig at gcc dot gnu.org 2010-12-31 11:20 ` tkoenig at gcc dot gnu.org 2010-12-31 11:35 ` tkoenig at gcc dot gnu.org 2011-01-02 21:58 ` tkoenig at gcc dot gnu.org 2011-01-02 21:59 ` tkoenig at gcc dot gnu.org 2010-08-19 10:22 [Bug fortran/45338] New: " sds50 at cam dot ac dot uk 2010-08-19 13:09 ` [Bug fortran/45338] " kargl at gcc dot gnu dot org 2010-08-19 14:11 ` burnus 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).