public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/59024] ICE: after printing certain error messages, the compiler seg faults.
       [not found] <bug-59024-4@http.gcc.gnu.org/bugzilla/>
@ 2013-12-18  8:17 ` dominiq at lps dot ens.fr
  2015-04-04 10:08 ` dominiq at lps dot ens.fr
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: dominiq at lps dot ens.fr @ 2013-12-18  8:17 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-12-18
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed on 4.8.2 and a clean 4.9.0, r206033. However the compilation exits
without ICE on my patched tree (r206072) but with the additional error

pr59024.f90:17.14:

END MODULE mtc
              1
Error: Procedure 'C_PTR_1' in generic interface 'tc' at (1) is neither function
nor subroutine

So this PR is likely a duplicate with a known fix. I'll try to figure out the
link.


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

* [Bug fortran/59024] ICE: after printing certain error messages, the compiler seg faults.
       [not found] <bug-59024-4@http.gcc.gnu.org/bugzilla/>
  2013-12-18  8:17 ` [Bug fortran/59024] ICE: after printing certain error messages, the compiler seg faults dominiq at lps dot ens.fr
@ 2015-04-04 10:08 ` dominiq at lps dot ens.fr
  2015-04-04 11:16 ` dominiq at lps dot ens.fr
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-04-04 10:08 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
AFAICT the errors with the trunk (5.0) are now

pr59024.f90:6.6:

  TYPE tc
      1
Error: Syntax error in PUBLIC statement at (1)
pr59024.f90:7.5:

  END TYPE tc
     1
Error: Expecting END MODULE statement at (1)
pr59024.f90:15.12:

    TYPE(tc) t
            1
Error: Derived type 'tc' at (1) is being used before it is defined
pr59024.f90:17.14:

END MODULE mtc
              1
Error: Procedure 'C_PTR_1' in generic interface 'tc' at (1) is neither function
nor subroutine

without any ICE. The change of behavior occurred between revisions r214073
(2014-08-17, ICE) and r214113 (2014-08-18, error). A candidate could be
r214076, but I don't see why.

Unless someone objects I'll close this PR as fixed in a week.


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

* [Bug fortran/59024] ICE: after printing certain error messages, the compiler seg faults.
       [not found] <bug-59024-4@http.gcc.gnu.org/bugzilla/>
  2013-12-18  8:17 ` [Bug fortran/59024] ICE: after printing certain error messages, the compiler seg faults dominiq at lps dot ens.fr
  2015-04-04 10:08 ` dominiq at lps dot ens.fr
@ 2015-04-04 11:16 ` dominiq at lps dot ens.fr
  2015-04-10 11:30 ` mikael at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-04-04 11:16 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> The change of behavior occurred between revisions r214073 (2014-08-17, ICE)
> and r214113 (2014-08-18, error). A candidate could be r214076,
> but I don't see why.

This seems to depend on the mood of my machine:

[Book15] f90/bug% /opt/gcc/gcc4.10p-214113/bin/gfortran pr59024.f90
gfortran: warning: couldn't understand kern.osversion '14.1.0
pr59024.f90:6.6:

  TYPE tc
      1
Error: Syntax error in PUBLIC statement at (1)
pr59024.f90:7.5:

  END TYPE tc
     1
Error: Expecting END MODULE statement at (1)
pr59024.f90:15.12:

    TYPE(tc) t
            1
Error: Derived type 'tc' at (1) is being used before it is defined
f951: internal compiler error: Segmentation fault: 11

f951: internal compiler error: Abort trap: 6
gfortran: internal compiler error: Abort trap: 6 (program f951)
Abort
[Book15] f90/bug% /opt/gcc/gcc4.10p-214113/bin/gfortran pr59024.f90
gfortran: warning: couldn't understand kern.osversion '14.1.0
pr59024.f90:6.6:

  TYPE tc
      1
Error: Syntax error in PUBLIC statement at (1)
pr59024.f90:7.5:

  END TYPE tc
     1
Error: Expecting END MODULE statement at (1)
pr59024.f90:15.12:

    TYPE(tc) t
            1
Error: Derived type 'tc' at (1) is being used before it is defined
pr59024.f90:17.14:

END MODULE mtc
              1
Error: Procedure 'C_PTR_1' in generic interface 'tc' at (1) is neither function
nor subroutine
[Book15] f90/bug% /opt/gcc/gcc4.10p-214073/bin/gfortran pr59024.f90
gfortran: warning: couldn't understand kern.osversion '14.1.0
pr59024.f90:6.6:

  TYPE tc
      1
Error: Syntax error in PUBLIC statement at (1)
pr59024.f90:7.5:

  END TYPE tc
     1
Error: Expecting END MODULE statement at (1)
pr59024.f90:15.12:

    TYPE(tc) t
            1
Error: Derived type 'tc' at (1) is being used before it is defined
pr59024.f90:17.14:

END MODULE mtc
              1
Error: Procedure 'C_PTR_1' in generic interface 'tc' at (1) is neither function
nor subroutine

So the bisection is not accurate, probably for the same reason as for pr59016.


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

* [Bug fortran/59024] ICE: after printing certain error messages, the compiler seg faults.
       [not found] <bug-59024-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2015-04-04 11:16 ` dominiq at lps dot ens.fr
@ 2015-04-10 11:30 ` mikael at gcc dot gnu.org
  2015-04-14  9:18 ` mikael at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: mikael at gcc dot gnu.org @ 2015-04-10 11:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Mikael Morin <mikael at gcc dot gnu.org> ---
Author: mikael
Date: Fri Apr 10 11:29:53 2015
New Revision: 221972

URL: https://gcc.gnu.org/viewcvs?rev=221972&root=gcc&view=rev
Log:
    PR fortran/56674
    PR fortran/58813
    PR fortran/59016
    PR fortran/59024
fortran/
    * symbol.c (save_symbol_data, gfc_save_symbol_data): Rename the
    former to the latter and make it non-static.  Update callers.
    * gfortran.h (gfc_save_symbol_data): New prototype.
    * decl.c (gfc_match_decl_type_spec): Call 'gfc_save_symbol_data'
    before modifying symbols 'sym' and 'dt_sym'.
testsuite/
    * gfortran.dg/used_types_27.f90: New.


Added:
    trunk/gcc/testsuite/gfortran.dg/used_types_27.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/decl.c
    trunk/gcc/fortran/gfortran.h
    trunk/gcc/fortran/symbol.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug fortran/59024] ICE: after printing certain error messages, the compiler seg faults.
       [not found] <bug-59024-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2015-04-10 11:30 ` mikael at gcc dot gnu.org
@ 2015-04-14  9:18 ` mikael at gcc dot gnu.org
  2015-04-14 12:24 ` mikael at gcc dot gnu.org
  2015-04-14 12:44 ` mikael at gcc dot gnu.org
  6 siblings, 0 replies; 7+ messages in thread
From: mikael at gcc dot gnu.org @ 2015-04-14  9:18 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Mikael Morin <mikael at gcc dot gnu.org> ---
Author: mikael
Date: Tue Apr 14 09:18:15 2015
New Revision: 222078

URL: https://gcc.gnu.org/viewcvs?rev=222078&root=gcc&view=rev
Log:
    PR fortran/56674
    PR fortran/58813
    PR fortran/59016
    PR fortran/59024
fortran/
    * symbol.c (save_symbol_data, gfc_save_symbol_data): Rename the
    former to the latter and make it non-static.  Update callers.
    * gfortran.h (gfc_save_symbol_data): New prototype.
    * decl.c (gfc_match_decl_type_spec): Call 'gfc_save_symbol_data'
    before modifying symbols 'sym' and 'dt_sym'.
testsuite/
    * gfortran.dg/used_types_27.f90: New.


Added:
    branches/gcc-4_9-branch/gcc/testsuite/gfortran.dg/used_types_27.f90
Modified:
    branches/gcc-4_9-branch/gcc/fortran/ChangeLog
    branches/gcc-4_9-branch/gcc/fortran/decl.c
    branches/gcc-4_9-branch/gcc/fortran/gfortran.h
    branches/gcc-4_9-branch/gcc/fortran/symbol.c
    branches/gcc-4_9-branch/gcc/testsuite/ChangeLog


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

* [Bug fortran/59024] ICE: after printing certain error messages, the compiler seg faults.
       [not found] <bug-59024-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2015-04-14  9:18 ` mikael at gcc dot gnu.org
@ 2015-04-14 12:24 ` mikael at gcc dot gnu.org
  2015-04-14 12:44 ` mikael at gcc dot gnu.org
  6 siblings, 0 replies; 7+ messages in thread
From: mikael at gcc dot gnu.org @ 2015-04-14 12:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Mikael Morin <mikael at gcc dot gnu.org> ---
Author: mikael
Date: Tue Apr 14 12:23:30 2015
New Revision: 222086

URL: https://gcc.gnu.org/viewcvs?rev=222086&root=gcc&view=rev
Log:
    PR fortran/56674
    PR fortran/58813
    PR fortran/59016
    PR fortran/59024
fortran/
    * symbol.c (save_symbol_data, gfc_save_symbol_data): Rename the
    former to the latter and make it non-static.  Update callers.
    * gfortran.h (gfc_save_symbol_data): New prototype.
    * decl.c (gfc_match_decl_type_spec): Call 'gfc_save_symbol_data'
    before modifying symbols 'sym' and 'dt_sym'.
testsuite/
    * gfortran.dg/used_types_27.f90: New.


Added:
    branches/gcc-4_8-branch/gcc/testsuite/gfortran.dg/used_types_27.f90
Modified:
    branches/gcc-4_8-branch/gcc/fortran/ChangeLog
    branches/gcc-4_8-branch/gcc/fortran/decl.c
    branches/gcc-4_8-branch/gcc/fortran/gfortran.h
    branches/gcc-4_8-branch/gcc/fortran/symbol.c
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog


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

* [Bug fortran/59024] ICE: after printing certain error messages, the compiler seg faults.
       [not found] <bug-59024-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2015-04-14 12:24 ` mikael at gcc dot gnu.org
@ 2015-04-14 12:44 ` mikael at gcc dot gnu.org
  6 siblings, 0 replies; 7+ messages in thread
From: mikael at gcc dot gnu.org @ 2015-04-14 12:44 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |mikael at gcc dot gnu.org
         Resolution|---                         |DUPLICATE

--- Comment #7 from Mikael Morin <mikael at gcc dot gnu.org> ---
Dup.

*** This bug has been marked as a duplicate of bug 59016 ***


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

end of thread, other threads:[~2015-04-14 12:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-59024-4@http.gcc.gnu.org/bugzilla/>
2013-12-18  8:17 ` [Bug fortran/59024] ICE: after printing certain error messages, the compiler seg faults dominiq at lps dot ens.fr
2015-04-04 10:08 ` dominiq at lps dot ens.fr
2015-04-04 11:16 ` dominiq at lps dot ens.fr
2015-04-10 11:30 ` mikael at gcc dot gnu.org
2015-04-14  9:18 ` mikael at gcc dot gnu.org
2015-04-14 12:24 ` mikael at gcc dot gnu.org
2015-04-14 12:44 ` mikael at gcc dot gnu.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).