public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/65045] New: ICE
@ 2015-02-12 21:28 walt.brainerd at gmail dot com
  2015-02-13 11:08 ` [Bug fortran/65045] [4.8/4.9/5 Regression] ICE when using the same name for a block and a variable dominiq at lps dot ens.fr
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: walt.brainerd at gmail dot com @ 2015-02-12 21:28 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 65045
           Summary: ICE
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: walt.brainerd at gmail dot com

Created attachment 34744
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34744&action=edit
Tried to use i as variable and construct name

gfortran exit_if.f90
exit_if.f90:3.6:

 if (i>7.7) then
      1
Error: Symbol at (1) is not appropriate for an expression
exit_if.f90:5.7:

   else
       1
Error: Unexpected ELSE statement at (1)
exit_if.f90:6.6:

     i = 2.2
      1
Error: 'i' at (1) is not a variable
exit_if.f90:7.6:

   end if
      1
Error: Expecting END BLOCK statement at (1)
f951.exe: internal compiler error: Segmentation fault


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

* [Bug fortran/65045] [4.8/4.9/5 Regression] ICE when using the same name for a block and a variable.
  2015-02-12 21:28 [Bug fortran/65045] New: ICE walt.brainerd at gmail dot com
@ 2015-02-13 11:08 ` dominiq at lps dot ens.fr
  2015-02-13 11:18 ` jakub at gcc dot gnu.org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-02-13 11:08 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |error-recovery
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-02-13
                 CC|                            |tkoenig at gcc dot gnu.org
            Summary|ICE                         |[4.8/4.9/5 Regression] ICE
                   |                            |when using the same name
                   |                            |for a block and a variable.
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Revision r195570 (2013-01-30) gives the errors without ICE, r195694 gives the
ICE, likely r195684.

Note that r220452 (5.0) gives

pr65045.f90:3:6: Error: Symbol at (1) is not appropriate for an expression
pr65045.f90:5:7:

    else
       1
Error: Unexpected ELSE statement at (1)
pr65045.f90:6:6: Error: 'i' at (1) is not a variable
pr65045.f90:7:6:

    end if
      1
Error: Expecting END BLOCK statement at (1)
(null):0: confused by earlier errors, bailing out

The reduced test

real :: i = 9.9
i:block
 if (i>7.7) then
     exit i
   end if
end block i
end

gives

pr65045_db_1.f90:3.6:

 if (i>7.7) then
      1
Error: Symbol at (1) is not appropriate for an expression
pr65045_db_1.f90:7.6:

   end if
      1
Error: Expecting END BLOCK statement at (1)
f951: internal compiler error: Segmentation fault: 11


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

* [Bug fortran/65045] [4.8/4.9/5 Regression] ICE when using the same name for a block and a variable.
  2015-02-12 21:28 [Bug fortran/65045] New: ICE walt.brainerd at gmail dot com
  2015-02-13 11:08 ` [Bug fortran/65045] [4.8/4.9/5 Regression] ICE when using the same name for a block and a variable dominiq at lps dot ens.fr
@ 2015-02-13 11:18 ` jakub at gcc dot gnu.org
  2015-03-09 14:46 ` pault at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-02-13 11:18 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
                 CC|                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |4.8.5


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

* [Bug fortran/65045] [4.8/4.9/5 Regression] ICE when using the same name for a block and a variable.
  2015-02-12 21:28 [Bug fortran/65045] New: ICE walt.brainerd at gmail dot com
  2015-02-13 11:08 ` [Bug fortran/65045] [4.8/4.9/5 Regression] ICE when using the same name for a block and a variable dominiq at lps dot ens.fr
  2015-02-13 11:18 ` jakub at gcc dot gnu.org
@ 2015-03-09 14:46 ` pault at gcc dot gnu.org
  2015-03-12 15:59 ` burnus at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pault at gcc dot gnu.org @ 2015-03-09 14:46 UTC (permalink / raw)
  To: gcc-bugs

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

Paul Thomas <pault at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pault at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |pault at gcc dot gnu.org

--- Comment #2 from Paul Thomas <pault at gcc dot gnu.org> ---
Created attachment 34991
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34991&action=edit
Draft patch for the PR

The attached patch bootstraps and regtests on trunk with FC21/x86_64.

Paul


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

* [Bug fortran/65045] [4.8/4.9/5 Regression] ICE when using the same name for a block and a variable.
  2015-02-12 21:28 [Bug fortran/65045] New: ICE walt.brainerd at gmail dot com
                   ` (2 preceding siblings ...)
  2015-03-09 14:46 ` pault at gcc dot gnu.org
@ 2015-03-12 15:59 ` burnus at gcc dot gnu.org
  2015-06-23  8:23 ` [Bug fortran/65045] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: burnus at gcc dot gnu.org @ 2015-03-12 15:59 UTC (permalink / raw)
  To: gcc-bugs

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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org

--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> ---
(In reply to Paul Thomas from comment #2)
> The attached patch bootstraps and regtests on trunk with FC21/x86_64.

Looks good to me - okay with a test case and a ChangeLog.


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

* [Bug fortran/65045] [4.8/4.9/5/6 Regression] ICE when using the same name for a block and a variable.
  2015-02-12 21:28 [Bug fortran/65045] New: ICE walt.brainerd at gmail dot com
                   ` (3 preceding siblings ...)
  2015-03-12 15:59 ` burnus at gcc dot gnu.org
@ 2015-06-23  8:23 ` rguenth at gcc dot gnu.org
  2015-06-26 20:16 ` [Bug fortran/65045] [4.9/5/6 " jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-23  8:23 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.5                       |4.9.3

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
The gcc-4_8-branch is being closed, re-targeting regressions to 4.9.3.


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

* [Bug fortran/65045] [4.9/5/6 Regression] ICE when using the same name for a block and a variable.
  2015-02-12 21:28 [Bug fortran/65045] New: ICE walt.brainerd at gmail dot com
                   ` (4 preceding siblings ...)
  2015-06-23  8:23 ` [Bug fortran/65045] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org
@ 2015-06-26 20:16 ` jakub at gcc dot gnu.org
  2015-06-26 20:37 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-26 20:16 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.9.3 has been released.


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

* [Bug fortran/65045] [4.9/5/6 Regression] ICE when using the same name for a block and a variable.
  2015-02-12 21:28 [Bug fortran/65045] New: ICE walt.brainerd at gmail dot com
                   ` (5 preceding siblings ...)
  2015-06-26 20:16 ` [Bug fortran/65045] [4.9/5/6 " jakub at gcc dot gnu.org
@ 2015-06-26 20:37 ` jakub at gcc dot gnu.org
  2015-10-27 17:30 ` dominiq at lps dot ens.fr
  2015-10-27 17:43 ` paul.richard.thomas at gmail dot com
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-26 20:37 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.9.3                       |4.9.4


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

* [Bug fortran/65045] [4.9/5/6 Regression] ICE when using the same name for a block and a variable.
  2015-02-12 21:28 [Bug fortran/65045] New: ICE walt.brainerd at gmail dot com
                   ` (6 preceding siblings ...)
  2015-06-26 20:37 ` jakub at gcc dot gnu.org
@ 2015-10-27 17:30 ` dominiq at lps dot ens.fr
  2015-10-27 17:43 ` paul.richard.thomas at gmail dot com
  8 siblings, 0 replies; 10+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-10-27 17:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
On Tobias Burnus 2015-03-12 15:59:34 UTC Tobias Burnus wrote:
> Looks good to me - okay with a test case and a ChangeLog.

What is the status of this patch?


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

* [Bug fortran/65045] [4.9/5/6 Regression] ICE when using the same name for a block and a variable.
  2015-02-12 21:28 [Bug fortran/65045] New: ICE walt.brainerd at gmail dot com
                   ` (7 preceding siblings ...)
  2015-10-27 17:30 ` dominiq at lps dot ens.fr
@ 2015-10-27 17:43 ` paul.richard.thomas at gmail dot com
  8 siblings, 0 replies; 10+ messages in thread
From: paul.richard.thomas at gmail dot com @ 2015-10-27 17:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from paul.richard.thomas at gmail dot com <paul.richard.thomas at gmail dot com> ---
I have been working my through my backlog of patches/PRs as you might
have noticed. This one, being a regression is next but two :-)

Cheers

Paul

On 27 October 2015 at 18:30, dominiq at lps dot ens.fr
<gcc-bugzilla@gcc.gnu.org> wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65045
>
> --- Comment #7 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> On Tobias Burnus 2015-03-12 15:59:34 UTC Tobias Burnus wrote:
>> Looks good to me - okay with a test case and a ChangeLog.
>
> What is the status of this patch?
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
> You are the assignee for the bug.


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

end of thread, other threads:[~2015-10-27 17:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-12 21:28 [Bug fortran/65045] New: ICE walt.brainerd at gmail dot com
2015-02-13 11:08 ` [Bug fortran/65045] [4.8/4.9/5 Regression] ICE when using the same name for a block and a variable dominiq at lps dot ens.fr
2015-02-13 11:18 ` jakub at gcc dot gnu.org
2015-03-09 14:46 ` pault at gcc dot gnu.org
2015-03-12 15:59 ` burnus at gcc dot gnu.org
2015-06-23  8:23 ` [Bug fortran/65045] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org
2015-06-26 20:16 ` [Bug fortran/65045] [4.9/5/6 " jakub at gcc dot gnu.org
2015-06-26 20:37 ` jakub at gcc dot gnu.org
2015-10-27 17:30 ` dominiq at lps dot ens.fr
2015-10-27 17:43 ` paul.richard.thomas at gmail dot com

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