public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/61676] New: Allocatable string as type component causes compile time segmentation fault
@ 2014-07-02 20:25 i.thompson at lboro dot ac.uk
  2014-07-03 10:23 ` [Bug fortran/61676] " dominiq at lps dot ens.fr
  2015-09-10 10:01 ` dominiq at lps dot ens.fr
  0 siblings, 2 replies; 3+ messages in thread
From: i.thompson at lboro dot ac.uk @ 2014-07-02 20:25 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 61676
           Summary: Allocatable string as type component causes compile
                    time segmentation fault
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: i.thompson at lboro dot ac.uk

Created attachment 33054
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33054&action=edit
Test case

The attached code causes a segmentation fault at compile time. It does not
cause any problems when used with nagfor 5.3 or pgfortran 14.3. Terminal i/o is
as follows.

% gfortran-mp-4.9 -v
Using built-in specs.
COLLECT_GCC=gfortran-mp-4.9
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin11/4.9.0/lto-wrapper
Target: x86_64-apple-darwin11
Configured with:
/opt/local/var/macports/build/_opt_mports_dports_lang_gcc49/gcc49/work/gcc-4.9-20140416/configure
--prefix=/opt/local --build=x86_64-apple-darwin11
--enable-languages=c,c++,objc,obj-c++,fortran,java
--libdir=/opt/local/lib/gcc49 --includedir=/opt/local/include/gcc49
--infodir=/opt/local/share/info --mandir=/opt/local/share/man
--datarootdir=/opt/local/share/gcc-4.9 --with-local-prefix=/opt/local
--with-system-zlib --disable-nls --program-suffix=-mp-4.9
--with-gxx-include-dir=/opt/local/include/gcc49/c++/ --with-gmp=/opt/local
--with-mpfr=/opt/local --with-mpc=/opt/local --with-cloog=/opt/local
--enable-cloog-backend=isl --disable-cloog-version-check
--enable-stage1-checking --disable-multilib --enable-lto
--enable-libstdcxx-time --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld
--with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket
--with-pkgversion='MacPorts gcc49 4.9-20140416_2'
Thread model: posix
gcc version 4.9.0 20140416 (prerelease) (MacPorts gcc49 4.9-20140416_2) 

% gfortran-mp-4.9 bug.f90
f951: internal compiler error: Segmentation fault: 11

f951: internal compiler error: Abort trap: 6
gfortran-mp-4.9: internal compiler error: Abort trap: 6 (program f951)
Abort


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

* [Bug fortran/61676] Allocatable string as type component causes compile time segmentation fault
  2014-07-02 20:25 [Bug fortran/61676] New: Allocatable string as type component causes compile time segmentation fault i.thompson at lboro dot ac.uk
@ 2014-07-03 10:23 ` dominiq at lps dot ens.fr
  2015-09-10 10:01 ` dominiq at lps dot ens.fr
  1 sibling, 0 replies; 3+ messages in thread
From: dominiq at lps dot ens.fr @ 2014-07-03 10:23 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-07-03
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed on 4.9 and trunk (4.10).


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

* [Bug fortran/61676] Allocatable string as type component causes compile time segmentation fault
  2014-07-02 20:25 [Bug fortran/61676] New: Allocatable string as type component causes compile time segmentation fault i.thompson at lboro dot ac.uk
  2014-07-03 10:23 ` [Bug fortran/61676] " dominiq at lps dot ens.fr
@ 2015-09-10 10:01 ` dominiq at lps dot ens.fr
  1 sibling, 0 replies; 3+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-09-10 10:01 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Fixed by the patch at https://gcc.gnu.org/ml/fortran/2015-07/msg00166.html.
Marked as duplicate of pr65766.

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


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

end of thread, other threads:[~2015-09-10 10:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-02 20:25 [Bug fortran/61676] New: Allocatable string as type component causes compile time segmentation fault i.thompson at lboro dot ac.uk
2014-07-03 10:23 ` [Bug fortran/61676] " dominiq at lps dot ens.fr
2015-09-10 10:01 ` dominiq at lps dot ens.fr

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).