public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/43592]  New: Unexpected INTERFACE statement in INTERFACE block at (1)
@ 2010-03-30 19:01 jv244 at cam dot ac dot uk
  2010-03-30 20:00 ` [Bug fortran/43592] " dominiq at lps dot ens dot fr
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: jv244 at cam dot ac dot uk @ 2010-03-30 19:01 UTC (permalink / raw)
  To: gcc-bugs

> cat small.f90
  interface assignment (=)
  interface pseudo_scalar
  pure function double_tensor2odd (x, t2) result (xt2)

> gfortran small.f90
small.f90:2.25:

  interface pseudo_scalar
                         1
Error: Unexpected INTERFACE statement in INTERFACE block at (1)
f951: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: Unexpected INTERFACE statement in INTERFACE block at (1)
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jv244 at cam dot ac dot uk


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


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

* [Bug fortran/43592] Unexpected INTERFACE statement in INTERFACE block at (1)
  2010-03-30 19:01 [Bug fortran/43592] New: Unexpected INTERFACE statement in INTERFACE block at (1) jv244 at cam dot ac dot uk
@ 2010-03-30 20:00 ` dominiq at lps dot ens dot fr
  2010-04-30 14:26 ` dfranke at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dominiq at lps dot ens dot fr @ 2010-03-30 20:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dominiq at lps dot ens dot fr  2010-03-30 20:00 -------
Confirmed:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
0x00000001000674c8 in parse_spec (st=ST_INTERFACE) at
../../p_work/gcc/fortran/parse.c:2239
2239                gfc_add_function (&sym->attr, sym->name, NULL);
(gdb) bt
#0  0x00000001000674c8 in parse_spec (st=ST_INTERFACE) at
../../p_work/gcc/fortran/parse.c:2239
#1  0x000000010006838d in parse_progunit (st=ST_ARITHMETIC_IF) at
../../p_work/gcc/fortran/parse.c:3758
#2  0x000000010006942c in gfc_parse_file () at
../../p_work/gcc/fortran/parse.c:4192
#3  0x00000001000a291c in gfc_be_parse_file (set_yydebug=<value temporarily
unavailable, due to optimizations>) at ../../p_work/gcc/fortran/f95-lang.c:239
#4  0x00000001006d6b5a in toplev_main (argc=2, argv=0x7fff5fbfd9f0) at
../../p_work/gcc/toplev.c:1053
#5  0x00000001000019e4 in start ()

Not a regression, I get the "Bus error" for 4.2.4, 4.3.4, 4.4.2, and trunk.


-- 


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


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

* [Bug fortran/43592] Unexpected INTERFACE statement in INTERFACE block at (1)
  2010-03-30 19:01 [Bug fortran/43592] New: Unexpected INTERFACE statement in INTERFACE block at (1) jv244 at cam dot ac dot uk
  2010-03-30 20:00 ` [Bug fortran/43592] " dominiq at lps dot ens dot fr
@ 2010-04-30 14:26 ` dfranke at gcc dot gnu dot org
  2010-04-30 18:09 ` kargl at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2010-04-30 14:26 UTC (permalink / raw)
  To: gcc-bugs



-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dfranke at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |error-recovery
   Last reconfirmed|0000-00-00 00:00:00         |2010-04-30 14:25:44
               date|                            |


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


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

* [Bug fortran/43592] Unexpected INTERFACE statement in INTERFACE block at (1)
  2010-03-30 19:01 [Bug fortran/43592] New: Unexpected INTERFACE statement in INTERFACE block at (1) jv244 at cam dot ac dot uk
  2010-03-30 20:00 ` [Bug fortran/43592] " dominiq at lps dot ens dot fr
  2010-04-30 14:26 ` dfranke at gcc dot gnu dot org
@ 2010-04-30 18:09 ` kargl at gcc dot gnu dot org
  2010-04-30 19:04 ` kargl at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: kargl at gcc dot gnu dot org @ 2010-04-30 18:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from kargl at gcc dot gnu dot org  2010-04-30 18:09 -------
I have a patch.


-- 

kargl at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |kargl at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2010-04-30 14:25:44         |2010-04-30 18:09:12
               date|                            |


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


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

* [Bug fortran/43592] Unexpected INTERFACE statement in INTERFACE block at (1)
  2010-03-30 19:01 [Bug fortran/43592] New: Unexpected INTERFACE statement in INTERFACE block at (1) jv244 at cam dot ac dot uk
                   ` (2 preceding siblings ...)
  2010-04-30 18:09 ` kargl at gcc dot gnu dot org
@ 2010-04-30 19:04 ` kargl at gcc dot gnu dot org
  2010-05-03 17:57 ` kargl at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: kargl at gcc dot gnu dot org @ 2010-04-30 19:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from kargl at gcc dot gnu dot org  2010-04-30 19:04 -------
http://gcc.gnu.org/ml/gcc-patches/2010-04/msg01922.html


-- 


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


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

* [Bug fortran/43592] Unexpected INTERFACE statement in INTERFACE block at (1)
  2010-03-30 19:01 [Bug fortran/43592] New: Unexpected INTERFACE statement in INTERFACE block at (1) jv244 at cam dot ac dot uk
                   ` (3 preceding siblings ...)
  2010-04-30 19:04 ` kargl at gcc dot gnu dot org
@ 2010-05-03 17:57 ` kargl at gcc dot gnu dot org
  2010-05-05 15:32 ` kargl at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: kargl at gcc dot gnu dot org @ 2010-05-03 17:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from kargl at gcc dot gnu dot org  2010-05-03 17:57 -------
Subject: Bug 43592

Author: kargl
Date: Mon May  3 17:57:14 2010
New Revision: 158998

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158998
Log:
2010-05-03  Steven G. Kargl  <kargl@gcc.gnu.org>

        PR fortran/43592
        * fortran/parse.c (parse_interface): Do not dereference a NULL pointer.

2010-05-03  Steven G. Kargl  <kargl@gcc.gnu.org>

        PR fortran/43592
        * gfortran.dg/unexpected_interface.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/unexpected_interface.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/parse.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/43592] Unexpected INTERFACE statement in INTERFACE block at (1)
  2010-03-30 19:01 [Bug fortran/43592] New: Unexpected INTERFACE statement in INTERFACE block at (1) jv244 at cam dot ac dot uk
                   ` (4 preceding siblings ...)
  2010-05-03 17:57 ` kargl at gcc dot gnu dot org
@ 2010-05-05 15:32 ` kargl at gcc dot gnu dot org
  2010-05-05 15:34 ` kargl at gcc dot gnu dot org
  2010-05-05 15:34 ` kargl at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: kargl at gcc dot gnu dot org @ 2010-05-05 15:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from kargl at gcc dot gnu dot org  2010-05-05 15:31 -------
Subject: Bug 43592

Author: kargl
Date: Wed May  5 15:30:54 2010
New Revision: 159068

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159068
Log:
2010-05-05  Steven G. Kargl  <kargl@gcc.gnu.org>

        PR fortran/43592
        * fortran/parse.c (parse_interface): Do not dereference a NULL pointer.

2010-05-05  Steven G. Kargl  <kargl@gcc.gnu.org>

        PR fortran/43592
        * gfortran.dg/unexpected_interface.f90: New test.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/gfortran.dg/unexpected_interface.f90
Modified:
    branches/gcc-4_5-branch/gcc/fortran/ChangeLog
    branches/gcc-4_5-branch/gcc/fortran/parse.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/43592] Unexpected INTERFACE statement in INTERFACE block at (1)
  2010-03-30 19:01 [Bug fortran/43592] New: Unexpected INTERFACE statement in INTERFACE block at (1) jv244 at cam dot ac dot uk
                   ` (5 preceding siblings ...)
  2010-05-05 15:32 ` kargl at gcc dot gnu dot org
@ 2010-05-05 15:34 ` kargl at gcc dot gnu dot org
  2010-05-05 15:34 ` kargl at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: kargl at gcc dot gnu dot org @ 2010-05-05 15:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from kargl at gcc dot gnu dot org  2010-05-05 15:33 -------
Fixed on trunk and 4.5. Closing.


-- 

kargl at gcc dot gnu dot org changed:

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


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


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

* [Bug fortran/43592] Unexpected INTERFACE statement in INTERFACE block at (1)
  2010-03-30 19:01 [Bug fortran/43592] New: Unexpected INTERFACE statement in INTERFACE block at (1) jv244 at cam dot ac dot uk
                   ` (6 preceding siblings ...)
  2010-05-05 15:34 ` kargl at gcc dot gnu dot org
@ 2010-05-05 15:34 ` kargl at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: kargl at gcc dot gnu dot org @ 2010-05-05 15:34 UTC (permalink / raw)
  To: gcc-bugs



-- 

kargl at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.5.1


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


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

end of thread, other threads:[~2010-05-05 15:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-30 19:01 [Bug fortran/43592] New: Unexpected INTERFACE statement in INTERFACE block at (1) jv244 at cam dot ac dot uk
2010-03-30 20:00 ` [Bug fortran/43592] " dominiq at lps dot ens dot fr
2010-04-30 14:26 ` dfranke at gcc dot gnu dot org
2010-04-30 18:09 ` kargl at gcc dot gnu dot org
2010-04-30 19:04 ` kargl at gcc dot gnu dot org
2010-05-03 17:57 ` kargl at gcc dot gnu dot org
2010-05-05 15:32 ` kargl at gcc dot gnu dot org
2010-05-05 15:34 ` kargl at gcc dot gnu dot org
2010-05-05 15:34 ` 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).