public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/58618] New: ICE with character array and ASSOCIATE
@ 2013-10-04 12:47 vladimir.fuka at gmail dot com
  2013-10-05 10:32 ` [Bug fortran/58618] ICE with character substring " burnus at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: vladimir.fuka at gmail dot com @ 2013-10-04 12:47 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58618
           Summary: ICE with character array and ASSOCIATE
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vladimir.fuka at gmail dot com

character(1) :: s(1)
    associate (x=>s(1)(1:1))
    end associate
  end


gfortran ice11.f90 
f951: internal compiler error: Neoprávněný přístup do paměti (SIGSEGV)
0x8ba79f crash_signal
        ../../gcc-4.8-20130509/gcc/toplev.c:332
0x5b16ca resolve_fl_variable
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:11256
0x5b16ca resolve_symbol
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:13714
0x5d0053 do_traverse_symtree
        ../../gcc-4.8-20130509/gcc/fortran/symbol.c:3575
0x5af144 resolve_types
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:14901
0x5afb10 gfc_resolve
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:15001
0x5bcb50 gfc_resolve
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:14994
0x5bcb50 resolve_block_construct
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:9367
0x5bcb50 resolve_code
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:10311
0x5bec4e resolve_codes
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:14975
0x5afb22 gfc_resolve
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:15003
0x5a4662 resolve_all_program_units
        ../../gcc-4.8-20130509/gcc/fortran/parse.c:4406
0x5a4662 gfc_parse_file()
        ../../gcc-4.8-20130509/gcc/fortran/parse.c:4673
0x5dfd15 gfc_be_parse_file
        ../../gcc-4.8-20130509/gcc/fortran/f95-lang.c:189
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
>From gcc-bugs-return-431078-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 04 12:48:47 2013
Return-Path: <gcc-bugs-return-431078-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13324 invoked by alias); 4 Oct 2013 12:48:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 13247 invoked by uid 48); 4 Oct 2013 12:48:44 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/58617] gcc crashed on compile arithmetic (or) expression
Date: Fri, 04 Oct 2013 12:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: glisse at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution bug_severity
Message-ID: <bug-58617-4-hMJp1s5vkz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58617-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58617-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-10/txt/msg00222.txt.bz2
Content-length: 569

http://gcc.gnu.org/bugzilla/show_bug.cgi?idX617

Marc Glisse <glisse at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE
           Severity|critical                    |normal

--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
Seems fixed on trunk with r202652.

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


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

* [Bug fortran/58618] ICE with character substring and ASSOCIATE
  2013-10-04 12:47 [Bug fortran/58618] New: ICE with character array and ASSOCIATE vladimir.fuka at gmail dot com
@ 2013-10-05 10:32 ` burnus at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: burnus at gcc dot gnu.org @ 2013-10-05 10:32 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-10-05
                 CC|                            |burnus at gcc dot gnu.org
            Summary|ICE with character array    |ICE with character
                   |and ASSOCIATE               |substring and ASSOCIATE
     Ever confirmed|0                           |1
      Known to fail|                            |4.8.1, 4.9.0

--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> ---
The ICE occurs in resolve_fl_variable
10795         e = sym->ts.u.cl->length;

Here, sym is "x" and ts.u.cl == NULL. Without the substring, ts.u.cl matches
"s"'s ts.u.cl (same pointer address).

The variable is set in parse.c's parse_associate:
3404          sym->ts = a->target->ts;

If the RHS is not a substring, it works. If it is, a->target->ts.u.cl is NULL
and the length is only in the REF_SUBSTRING expression at
a->target->ref->next->u.ss.length->length


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

end of thread, other threads:[~2013-10-05 10:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-04 12:47 [Bug fortran/58618] New: ICE with character array and ASSOCIATE vladimir.fuka at gmail dot com
2013-10-05 10:32 ` [Bug fortran/58618] ICE with character substring " burnus 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).