This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/29876] New: ICE on bad operator in ONLY clause of USE statement


The first error below is expected, but the second one should not be printed out
that way :)

$ cat translation_tests.f90 
module foo
end module foo

program test
  use foo, only : bar, operator(.none.)
end program test
$ gfortran translation_tests.f90
translation_tests.f90:5.17:

  use foo, only : bar, operator(.none.)
                1
Error: Symbol 'bar' referenced at (1) not found in module 'foo'
translation_tests.f90:5.39:

  use foo, only : bar, operator(.none.)
                                      1
Internal Error at (1):
gfc_code2string(): Bad code


-- 
           Summary: ICE on bad operator in ONLY clause of USE statement
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fxcoudert at gcc dot gnu dot org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]