public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/53576] New: Very unhelpful error message: "Unclassifiable statement" instead of "Can't convert TYPE to ..."
@ 2012-06-04 17:52 burnus at gcc dot gnu.org
  2015-10-08  8:59 ` [Bug fortran/53576] " dominiq at lps dot ens.fr
  0 siblings, 1 reply; 2+ messages in thread
From: burnus at gcc dot gnu.org @ 2012-06-04 17:52 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53576
           Summary: Very unhelpful error message: "Unclassifiable
                    statement" instead of "Can't convert TYPE to ..."
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org


The following program is invalid; gfortran rejects it, but with a completely
unhelpful error message. The problem is that the "amn(jj)" should be
"amn%value(jj).


Current error message:

    wfn &
    1
Error: Unclassifiable statement at (1)


Expected error (or something similar):

       = amn(jj)
         1
Error: Can't convert TYPE(amn_t) to COMPLEX(4) at (1)



Note: gfortran prints the proper error message if the loop bound is changed
from "amn%nsites" to, e.g., "5". (That's how I got the type-conversion error
message.)



program simple_wf_op_gen
  type :: amn_t
    integer :: nsites = 0
    complex :: value(1)
  end type amn_t

  type(amn_t) :: amn
  integer :: jj
  complex :: wfn

  do jj = 1, amn%nsites
    wfn &
       = amn(jj)
  end do
end program simple_wf_op_gen


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

* [Bug fortran/53576] Very unhelpful error message: "Unclassifiable statement" instead of "Can't convert TYPE to ..."
  2012-06-04 17:52 [Bug fortran/53576] New: Very unhelpful error message: "Unclassifiable statement" instead of "Can't convert TYPE to ..." burnus at gcc dot gnu.org
@ 2015-10-08  8:59 ` dominiq at lps dot ens.fr
  0 siblings, 0 replies; 2+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-10-08  8:59 UTC (permalink / raw)
  To: gcc-bugs

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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-10-08
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Still present on trunk (6.0) at r228594.


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

end of thread, other threads:[~2015-10-08  8:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-04 17:52 [Bug fortran/53576] New: Very unhelpful error message: "Unclassifiable statement" instead of "Can't convert TYPE to ..." burnus at gcc dot gnu.org
2015-10-08  8:59 ` [Bug fortran/53576] " dominiq at lps dot ens.fr

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).