public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/44345] ICE in fold_convert_loc
       [not found] <bug-44345-4@http.gcc.gnu.org/bugzilla/>
@ 2013-01-15 21:40 ` mikael at gcc dot gnu.org
  2013-06-22 13:31 ` dominiq at lps dot ens.fr
  1 sibling, 0 replies; 5+ messages in thread
From: mikael at gcc dot gnu.org @ 2013-01-15 21:40 UTC (permalink / raw)
  To: gcc-bugs


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

Mikael Morin <mikael at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikael at gcc dot gnu.org
      Known to work|                            |4.8.0
      Known to fail|                            |

--- Comment #4 from Mikael Morin <mikael at gcc dot gnu.org> 2013-01-15 21:40:13 UTC ---
The code is now rejected with 4.8.0

:3.6:

      q(i)=i
      1
Error: Unclassifiable statement at (1)
:4.9:

      p=>q(110)
         1
Error: Target expression in pointer assignment at (1) must deliver a pointer
result


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

* [Bug fortran/44345] ICE in fold_convert_loc
       [not found] <bug-44345-4@http.gcc.gnu.org/bugzilla/>
  2013-01-15 21:40 ` [Bug fortran/44345] ICE in fold_convert_loc mikael at gcc dot gnu.org
@ 2013-06-22 13:31 ` dominiq at lps dot ens.fr
  1 sibling, 0 replies; 5+ messages in thread
From: dominiq at lps dot ens.fr @ 2013-06-22 13:31 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> The code is now rejected with 4.8.0

Confirmed. Closing as FIXED. Please reopen if I am wrong.


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

* [Bug fortran/44345] ICE in fold_convert_loc
  2010-05-31 16:13 [Bug fortran/44345] New: " zeccav at gmail dot com
  2010-05-31 16:59 ` [Bug fortran/44345] " mikael at gcc dot gnu dot org
  2010-05-31 18:37 ` zeccav at gmail dot com
@ 2010-05-31 22:20 ` kargl at gcc dot gnu dot org
  2 siblings, 0 replies; 5+ messages in thread
From: kargl at gcc dot gnu dot org @ 2010-05-31 22:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from kargl at gcc dot gnu dot org  2010-05-31 22:20 -------
Interestingly, if one does not use implicit type, one finds that
the following compiles:

      integer, pointer :: p
      integer, target  :: q
      q(i)=i
      p=>q(110)
      print *,p
      end

and 

      integer, pointer :: p
      integer, target  :: q
      integer i
      q(i)=i
      p=>q(110)
      print *,p
      end

and

      real, pointer :: p
      real, target  :: q
      real i
      q(i)=i
      p=>q(110.)
      print *,p
      end

Finally, this one does not compile

      real, pointer :: p
      real, target  :: q
      integer i
      q(i)=i
      p=>q(110)
      print *,p
      end

laptop:kargl[218] gfc4x -o z t.f90 && ./z
t.f90: In function 'MAIN__':
t.f90:5:0: internal compiler error: in fold_convert_loc, at fold-const.c:1920
Please submit a full bug report,
with preprocessed source if appropriate.


-- 


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


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

* [Bug fortran/44345] ICE in fold_convert_loc
  2010-05-31 16:13 [Bug fortran/44345] New: " zeccav at gmail dot com
  2010-05-31 16:59 ` [Bug fortran/44345] " mikael at gcc dot gnu dot org
@ 2010-05-31 18:37 ` zeccav at gmail dot com
  2010-05-31 22:20 ` kargl at gcc dot gnu dot org
  2 siblings, 0 replies; 5+ messages in thread
From: zeccav at gmail dot com @ 2010-05-31 18:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from zeccav at gmail dot com  2010-05-31 18:37 -------
Subject: Re:  ICE in fold_convert_loc

In that case gfortran should emit an error message, but it should not crash.


-- 


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


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

* [Bug fortran/44345] ICE in fold_convert_loc
  2010-05-31 16:13 [Bug fortran/44345] New: " zeccav at gmail dot com
@ 2010-05-31 16:59 ` mikael at gcc dot gnu dot org
  2010-05-31 18:37 ` zeccav at gmail dot com
  2010-05-31 22:20 ` kargl at gcc dot gnu dot org
  2 siblings, 0 replies; 5+ messages in thread
From: mikael at gcc dot gnu dot org @ 2010-05-31 16:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from mikael at gcc dot gnu dot org  2010-05-31 16:59 -------
I think the code is invalid as it violates :

   C554 An entity with the TARGET attribute shall be a variable.

Confirmed.


-- 

mikael at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-invalid-code
      Known to fail|                            |4.4.4 4.6.0
   Last reconfirmed|0000-00-00 00:00:00         |2010-05-31 16:59:18
               date|                            |


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


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

end of thread, other threads:[~2013-06-22 13:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-44345-4@http.gcc.gnu.org/bugzilla/>
2013-01-15 21:40 ` [Bug fortran/44345] ICE in fold_convert_loc mikael at gcc dot gnu.org
2013-06-22 13:31 ` dominiq at lps dot ens.fr
2010-05-31 16:13 [Bug fortran/44345] New: " zeccav at gmail dot com
2010-05-31 16:59 ` [Bug fortran/44345] " mikael at gcc dot gnu dot org
2010-05-31 18:37 ` zeccav at gmail dot com
2010-05-31 22:20 ` kargl 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).