public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/58233] New: null pointer cm in gfc_conv_structure at fortran/trans-expr.c:6132
@ 2013-08-23 19:31 zeccav at gmail dot com
  2013-09-02 12:30 ` [Bug fortran/58233] " dominiq at lps dot ens.fr
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: zeccav at gmail dot com @ 2013-08-23 19:31 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58233
           Summary: null pointer cm in gfc_conv_structure at
                    fortran/trans-expr.c:6132
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com

! null pointer cm in gfc_conv_structure at fortran/trans-expr.c:6132 
! if (!c->expr || (gcc_assert(cm),(cm->attr.allocatable && ! cm->attr.flavor !=
FL_PROCEDURE)))
! compiling the following
      type t
       integer g
      end type
      type(t) :: u=t(1)
      data u%g /2/ ! should emit diagnostic here
      end

To show the null pointer I added a gcc_assert(cm)

!gfbug63.f: In function ‘MAIN__’:
!gfbug63.f:2:0: internal compiler error: in gfc_conv_structure, at
fortran/trans-expr.c:6132
!       type t
! ^
!0x5ba439 gfc_conv_structure(gfc_se*, gfc_expr*, int)
!        ../../gcc-4.8.1/gcc/fortran/trans-expr.c:6132
!0x5ba6a0 gfc_conv_initializer(gfc_expr*, gfc_typespec*, tree_node*, bool,
bool, bool)
!        ../../gcc-4.8.1/gcc/fortran/trans-expr.c:5690
!0x5aa1bd gfc_get_symbol_decl(gfc_symbol*)
!        ../../gcc-4.8.1/gcc/fortran/trans-decl.c:1501
!0x5aab2f generate_local_decl
!        ../../gcc-4.8.1/gcc/fortran/trans-decl.c:4606
!0x57e133 do_traverse_symtree
!        ../../gcc-4.8.1/gcc/fortran/symbol.c:3575
!0x5aeaf2 generate_local_vars
!        ../../gcc-4.8.1/gcc/fortran/trans-decl.c:4765
!0x5aeaf2 gfc_generate_function_code(gfc_namespace*)
!        ../../gcc-4.8.1/gcc/fortran/trans-decl.c:5339
!0x552ab0 translate_all_program_units
!        ../../gcc-4.8.1/gcc/fortran/parse.c:4474
!0x552ab0 gfc_parse_file()
!        ../../gcc-4.8.1/gcc/fortran/parse.c:4688
!0x58ddf5 gfc_be_parse_file
!        ../../gcc-4.8.1/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-428307-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 23 19:53:08 2013
Return-Path: <gcc-bugs-return-428307-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23309 invoked by alias); 23 Aug 2013 19:53:07 -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 23281 invoked by uid 48); 23 Aug 2013 19:53:06 -0000
From: "hstong at ca dot ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/57610] Reference initialized with temporary instead of sub-object of conversion result
Date: Fri, 23 Aug 2013 19:53: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: hstong at ca dot ibm.com
X-Bugzilla-Status: UNCONFIRMED
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:
Message-ID: <bug-57610-4-lpfoHenIdA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57610-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57610-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-08/txt/msg01231.txt.bz2
Content-length: 221

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

--- Comment #9 from Hubert Tong <hstong at ca dot ibm.com> ---
CWG 1604 may address the issues with performance and slicing mentioned in CWG
1287 which led to CWG 1650.


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

* [Bug fortran/58233] null pointer cm in gfc_conv_structure at fortran/trans-expr.c:6132
  2013-08-23 19:31 [Bug fortran/58233] New: null pointer cm in gfc_conv_structure at fortran/trans-expr.c:6132 zeccav at gmail dot com
@ 2013-09-02 12:30 ` dominiq at lps dot ens.fr
  2013-10-18 19:38 ` zeccav at gmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: dominiq at lps dot ens.fr @ 2013-09-02 12:30 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-09-02
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed at r202154.


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

* [Bug fortran/58233] null pointer cm in gfc_conv_structure at fortran/trans-expr.c:6132
  2013-08-23 19:31 [Bug fortran/58233] New: null pointer cm in gfc_conv_structure at fortran/trans-expr.c:6132 zeccav at gmail dot com
  2013-09-02 12:30 ` [Bug fortran/58233] " dominiq at lps dot ens.fr
@ 2013-10-18 19:38 ` zeccav at gmail dot com
  2015-04-24 17:25 ` zeccav at gmail dot com
  2015-09-02 13:20 ` zeccav at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: zeccav at gmail dot com @ 2013-10-18 19:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Vittorio Zecca <zeccav at gmail dot com> ---
Still there on 4.8.2, pointer cm is null at trans-expr.c:6132.


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

* [Bug fortran/58233] null pointer cm in gfc_conv_structure at fortran/trans-expr.c:6132
  2013-08-23 19:31 [Bug fortran/58233] New: null pointer cm in gfc_conv_structure at fortran/trans-expr.c:6132 zeccav at gmail dot com
  2013-09-02 12:30 ` [Bug fortran/58233] " dominiq at lps dot ens.fr
  2013-10-18 19:38 ` zeccav at gmail dot com
@ 2015-04-24 17:25 ` zeccav at gmail dot com
  2015-09-02 13:20 ` zeccav at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: zeccav at gmail dot com @ 2015-04-24 17:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Vittorio Zecca <zeccav at gmail dot com> ---
Still there on 4.9.2 at trans-expr.c:6193

if (!c->expr || (cm->attr.allocatable && cm->attr.flavor != FL_PROCEDURE))

/home/vitti/gcc-4.9.2-sanitize/test/f951 p.f
 MAIN__
p.f:1:0: internal compiler error: in gfc_conv_structure, at
fortran/trans-expr.c:6193
       type t
 ^
0x7c45c2 gfc_conv_structure(gfc_se*, gfc_expr*, int)
    ../../gcc-4.9.2/gcc/fortran/trans-expr.c:6193
0x7c20c0 gfc_conv_initializer(gfc_expr*, gfc_typespec*, tree_node*, bool, bool,
bool)
    ../../gcc-4.9.2/gcc/fortran/trans-expr.c:5718
0x78e78f gfc_get_symbol_decl(gfc_symbol*)
    ../../gcc-4.9.2/gcc/fortran/trans-decl.c:1540
0x7a0846 generate_local_decl
    ../../gcc-4.9.2/gcc/fortran/trans-decl.c:4847
0x726945 do_traverse_symtree
    ../../gcc-4.9.2/gcc/fortran/symbol.c:3630
0x726a73 gfc_traverse_ns(gfc_namespace*, void (*)(gfc_symbol*))
    ../../gcc-4.9.2/gcc/fortran/symbol.c:3655
0x7a178d generate_local_vars
    ../../gcc-4.9.2/gcc/fortran/trans-decl.c:5019
0x7a38ce gfc_generate_function_code(gfc_namespace*)
    ../../gcc-4.9.2/gcc/fortran/trans-decl.c:5595
0x75761d gfc_generate_code(gfc_namespace*)
    ../../gcc-4.9.2/gcc/fortran/trans.c:1945
0x6a2737 translate_all_program_units
    ../../gcc-4.9.2/gcc/fortran/parse.c:4953
0x6a2ebd gfc_parse_file()
    ../../gcc-4.9.2/gcc/fortran/parse.c:5150
0x7392c6 gfc_be_parse_file
    ../../gcc-4.9.2/gcc/fortran/f95-lang.c:212
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.

Compiling

type t
integer g
end type
type(t) :: u=t(1)
data u%g /2/ ! should emit diagnostic here
end


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

* [Bug fortran/58233] null pointer cm in gfc_conv_structure at fortran/trans-expr.c:6132
  2013-08-23 19:31 [Bug fortran/58233] New: null pointer cm in gfc_conv_structure at fortran/trans-expr.c:6132 zeccav at gmail dot com
                   ` (2 preceding siblings ...)
  2015-04-24 17:25 ` zeccav at gmail dot com
@ 2015-09-02 13:20 ` zeccav at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: zeccav at gmail dot com @ 2015-09-02 13:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Vittorio Zecca <zeccav at gmail dot com> ---
Still there on 5.2.0


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

end of thread, other threads:[~2015-09-02 13:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-23 19:31 [Bug fortran/58233] New: null pointer cm in gfc_conv_structure at fortran/trans-expr.c:6132 zeccav at gmail dot com
2013-09-02 12:30 ` [Bug fortran/58233] " dominiq at lps dot ens.fr
2013-10-18 19:38 ` zeccav at gmail dot com
2015-04-24 17:25 ` zeccav at gmail dot com
2015-09-02 13:20 ` zeccav 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).