public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/58947] New: [OOP] ICE on select type with non-polymorphic  selector
@ 2013-10-31 20:55 vladimir.fuka at gmail dot com
  2013-11-01 14:27 ` [Bug fortran/58947] " janus at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: vladimir.fuka at gmail dot com @ 2013-10-31 20:55 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58947
           Summary: [OOP] ICE on select type with non-polymorphic
                    selector
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vladimir.fuka at gmail dot com

type t
    integer i
  end type

  type(t) a

  select type (x=>a%i)
    type is (integer)
      print *,x
  end select
end


> gfortran seltype.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
0x546b1c get_unique_type_string
        ../../gcc-4.8-20130509/gcc/fortran/class.c:462
0x5476d8 get_unique_hashed_string
        ../../gcc-4.8-20130509/gcc/fortran/class.c:485
0x5480aa gfc_build_class_symbol(gfc_typespec*, symbol_attribute*,
gfc_array_spec**, bool)
        ../../gcc-4.8-20130509/gcc/fortran/class.c:579
0x58f528 copy_ts_from_selector_to_associate
        ../../gcc-4.8-20130509/gcc/fortran/match.c:5220
0x58f528 gfc_match_select_type()
        ../../gcc-4.8-20130509/gcc/fortran/match.c:5391
0x59e919 match_word
        ../../gcc-4.8-20130509/gcc/fortran/parse.c:65
0x59fb8e match_word
        ../../gcc-4.8-20130509/gcc/fortran/parse.c:368
0x59fb8e decode_statement
        ../../gcc-4.8-20130509/gcc/fortran/parse.c:369
0x5a0f04 next_free
        ../../gcc-4.8-20130509/gcc/fortran/parse.c:783
0x5a0f04 next_statement
        ../../gcc-4.8-20130509/gcc/fortran/parse.c:976
0x5a15a4 parse_spec
        ../../gcc-4.8-20130509/gcc/fortran/parse.c:2744
0x5a34e8 parse_progunit
        ../../gcc-4.8-20130509/gcc/fortran/parse.c:4124
0x5a4208 gfc_parse_file()
        ../../gcc-4.8-20130509/gcc/fortran/parse.c:4605
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-433213-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 31 21:05:11 2013
Return-Path: <gcc-bugs-return-433213-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20533 invoked by alias); 31 Oct 2013 21:05:11 -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 20501 invoked by uid 48); 31 Oct 2013 21:05:07 -0000
From: "sshannin at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58948] New: c++0x support for enums in namespaces
Date: Thu, 31 Oct 2013 21:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.6.3
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: sshannin at gmail dot 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cf_gcchost cf_gcctarget cf_gccbuild attachments.created
Message-ID: <bug-58948-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-10/txt/msg02357.txt.bz2
Content-length: 1224

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

            Bug ID: 58948
           Summary: c++0x support for enums in namespaces
           Product: gcc
           Version: 4.6.3
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sshannin at gmail dot com
              Host: gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
            Target: x86_64-linux-gnu
             Build: Configured with: ../src/configure -v
                    --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5'
                    --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bug
                    s --enable-languages=c,c++,fortran,objc,obj-c++
                    --prefix=/usr --program-suffix=-4.6 --enable-shared
                    --enable-linker

Created attachment 31128
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31128&action=edit
Preprocessed source

compiled with:
g++ -std=c++0x sample.cpp

Error message:
sample.cpp:3:1: error: ‘G’ in ‘enum G::A’ does not name a type

Compiles without complaint if 'std=c++0x' argument is omitted.
>From gcc-bugs-return-433214-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 31 21:14:28 2013
Return-Path: <gcc-bugs-return-433214-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27688 invoked by alias); 31 Oct 2013 21:14:27 -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 27641 invoked by uid 48); 31 Oct 2013 21:14:23 -0000
From: "octoploid at yandex dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/58946] [4.9 Regression] internal compiler error: in operator[], at vec.h:722
Date: Thu, 31 Oct 2013 21:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: octoploid at yandex dot 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: cc
Message-ID: <bug-58946-4-EC4VXhWbOl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58946-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58946-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/msg02358.txt.bz2
Content-length: 373

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

octoploid at yandex dot com changed:

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

--- Comment #1 from octoploid at yandex dot com ---
Started with r204194.


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

* [Bug fortran/58947] [OOP] ICE on select type with non-polymorphic  selector
  2013-10-31 20:55 [Bug fortran/58947] New: [OOP] ICE on select type with non-polymorphic selector vladimir.fuka at gmail dot com
@ 2013-11-01 14:27 ` janus at gcc dot gnu.org
  2013-11-02 13:41 ` vladimir.fuka at gmail dot com
  2013-11-02 14:56 ` janus at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: janus at gcc dot gnu.org @ 2013-11-01 14:27 UTC (permalink / raw)
  To: gcc-bugs

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

janus at gcc dot gnu.org changed:

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

--- Comment #1 from janus at gcc dot gnu.org ---
I get the correct error


  select type (x=>a%i)
                      1
Error: Selector shall be polymorphic in SELECT TYPE statement at (1)



with both of these versions (on x86_64-linux-gnu):

gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu8)
gcc version 4.9.0 20131009 (experimental) [trunk revision 203329] (GCC)


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

* [Bug fortran/58947] [OOP] ICE on select type with non-polymorphic  selector
  2013-10-31 20:55 [Bug fortran/58947] New: [OOP] ICE on select type with non-polymorphic selector vladimir.fuka at gmail dot com
  2013-11-01 14:27 ` [Bug fortran/58947] " janus at gcc dot gnu.org
@ 2013-11-02 13:41 ` vladimir.fuka at gmail dot com
  2013-11-02 14:56 ` janus at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: vladimir.fuka at gmail dot com @ 2013-11-02 13:41 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Vladimir Fuka <vladimir.fuka at gmail dot com> ---
Yes, also on my other computer with a more recent version (4.8.2 20131003) it
works right. I have more computers and I sometimes loose track of when did I
recompile gcc last time there. I assumed it is from fifth September and it is
actually ninth May.


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

* [Bug fortran/58947] [OOP] ICE on select type with non-polymorphic  selector
  2013-10-31 20:55 [Bug fortran/58947] New: [OOP] ICE on select type with non-polymorphic selector vladimir.fuka at gmail dot com
  2013-11-01 14:27 ` [Bug fortran/58947] " janus at gcc dot gnu.org
  2013-11-02 13:41 ` vladimir.fuka at gmail dot com
@ 2013-11-02 14:56 ` janus at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: janus at gcc dot gnu.org @ 2013-11-02 14:56 UTC (permalink / raw)
  To: gcc-bugs

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

janus at gcc dot gnu.org changed:

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

--- Comment #3 from janus at gcc dot gnu.org ---
(In reply to Vladimir Fuka from comment #2)
> Yes, also on my other computer with a more recent version (4.8.2 20131003)
> it works right. I have more computers and I sometimes loose track of when
> did I recompile gcc last time there. I assumed it is from fifth September
> and it is actually ninth May.

Great, so I guess we can close this PR as fixed ...


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

end of thread, other threads:[~2013-11-02 14:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-31 20:55 [Bug fortran/58947] New: [OOP] ICE on select type with non-polymorphic selector vladimir.fuka at gmail dot com
2013-11-01 14:27 ` [Bug fortran/58947] " janus at gcc dot gnu.org
2013-11-02 13:41 ` vladimir.fuka at gmail dot com
2013-11-02 14:56 ` janus 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).