[Bug fortran/66328] Wrong initialization of derived-type DATA

2017-09-24 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66328

Thomas Koenig  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||tkoenig at gcc dot gnu.org
 Resolution|--- |FIXED

--- Comment #6 from Thomas Koenig  ---
Test case committed to trunk, closing.

[Bug fortran/66328] Wrong initialization of derived-type DATA

2017-09-24 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66328

--- Comment #5 from Thomas Koenig  ---
Author: tkoenig
Date: Sun Sep 24 14:26:55 2017
New Revision: 253126

URL: https://gcc.gnu.org/viewcvs?rev=253126=gcc=rev
Log:
2017-09-24  Thomas Koenig  
PR fortran/66328

* gfortran.dg/data_derived_1.f90: New test.


Added:
trunk/gcc/testsuite/gfortran.dg/data_derived_1.f90
Modified:
trunk/gcc/testsuite/ChangeLog

[Bug fortran/66328] Wrong initialization of derived-type DATA

2017-02-23 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66328

Dominique d'Humieres  changed:

   What|Removed |Added

 Blocks||33056

--- Comment #4 from Dominique d'Humieres  ---
AFAICT this is fixed on 6.3.0 and trunk (7.0), but not on 5.4.1 (r245576).


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33056
[Bug 33056] [Meta-bug] Data - statement related bugs

[Bug fortran/66328] Wrong initialization of derived-type DATA

2016-05-09 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66328

--- Comment #3 from Dominique d'Humieres  ---
The bug reappears on trunk if I revert r230580.

[Bug fortran/66328] Wrong initialization of derived-type DATA

2016-05-07 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66328

Dominique d'Humieres  changed:

   What|Removed |Added

 CC||kargl at gcc dot gnu.org

--- Comment #2 from Dominique d'Humieres  ---
This PR has been "fixed" between revisions r230421 (2015-11-16, wrong-code) and
r230500+patch for pr59910 (2015-11-17), likely by r230580 (pr59910).

Steve, could you please check that this is right?

[Bug fortran/66328] Wrong initialization of derived-type DATA

2016-05-07 Thread physiker at toast2 dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66328

physiker at toast2 dot net changed:

   What|Removed |Added

 CC||physiker at toast2 dot net

--- Comment #1 from physiker at toast2 dot net ---
It seems that the bug is fixed. When the code is compiled with gfortran 6.1,
the binary produces the expected output when run (see below).

bash-3.2$  LANG=C gfortran-fsf-6 -v ddata.f90
Driving: gfortran-fsf-6 -v ddata.f90 -mmacosx-version-min=10.9.4 -l gfortran
-shared-libgcc
Using built-in specs.
COLLECT_GCC=gfortran-fsf-6
COLLECT_LTO_WRAPPER=/sw/lib/gcc6/libexec/gcc/x86_64-apple-darwin13.4.0/6.1.0/lto-wrapper
Target: x86_64-apple-darwin13.4.0
Configured with: ../gcc-6.1.0/configure --prefix=/sw --prefix=/sw/lib/gcc6
--mandir=/sw/share/man --infodir=/sw/lib/gcc6/info
--enable-languages=c,c++,fortran,lto,objc,obj-c++,java --with-gmp=/sw
--with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib
--program-suffix=-fsf-6
Thread model: posix
gcc version 6.1.0 (GCC) 
COLLECT_GCC_OPTIONS='-v' '-mmacosx-version-min=10.9.4' '-shared-libgcc'
'-mtune=core2'
 /sw/lib/gcc6/libexec/gcc/x86_64-apple-darwin13.4.0/6.1.0/f951 ddata.f90 -fPIC
-quiet -dumpbase ddata.f90 -mmacosx-version-min=10.9.4 -mtune=core2 -auxbase
ddata -version -fintrinsic-modules-path
/sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0/finclude -o
/var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccxnGIeX.s
GNU Fortran (GCC) version 6.1.0 (x86_64-apple-darwin13.4.0)
compiled by GNU C version 6.1.0, GMP version 6.1.0, MPFR version 3.1.4,
MPC version 1.0.3, isl version 0.15
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU Fortran2008 (GCC) version 6.1.0 (x86_64-apple-darwin13.4.0)
compiled by GNU C version 6.1.0, GMP version 6.1.0, MPFR version 3.1.4,
MPC version 1.0.3, isl version 0.15
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
COLLECT_GCC_OPTIONS='-v' '-mmacosx-version-min=10.9.4' '-shared-libgcc'
'-mtune=core2'
 as -arch x86_64 -force_cpusubtype_ALL -o
/var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccpWyVcF.o
/var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccxnGIeX.s
Reading specs from
/sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0/../../../libgfortran.spec
rename spec lib to liborig
COLLECT_GCC_OPTIONS='-v' '-mmacosx-version-min=10.9.4' '-shared-libgcc'
'-mtune=core2'
COMPILER_PATH=/sw/lib/gcc6/libexec/gcc/x86_64-apple-darwin13.4.0/6.1.0/:/sw/lib/gcc6/libexec/gcc/x86_64-apple-darwin13.4.0/6.1.0/:/sw/lib/gcc6/libexec/gcc/x86_64-apple-darwin13.4.0/:/sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0/:/sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/
LIBRARY_PATH=/sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0/:/sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0/../../../
COLLECT_GCC_OPTIONS='-v' '-mmacosx-version-min=10.9.4' '-shared-libgcc'
'-mtune=core2'
 /sw/lib/gcc6/libexec/gcc/x86_64-apple-darwin13.4.0/6.1.0/collect2 -dynamic
-arch x86_64 -macosx_version_min 10.9.4 -weak_reference_mismatches non-weak -o
a.out -L/sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0
-L/sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0/../../..
/var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccpWyVcF.o -lgfortran
-no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lquadmath -lm -lgcc_ext.10.5
-lgcc -lSystem -v
collect2 version 6.1.0
/usr/bin/ld -dynamic -arch x86_64 -macosx_version_min 10.9.4
-weak_reference_mismatches non-weak -o a.out
-L/sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0
-L/sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0/../../..
/var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccpWyVcF.o -lgfortran
-no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lquadmath -lm -lgcc_ext.10.5
-lgcc -lSystem -v
@(#)PROGRAM:ld  PROJECT:ld64-241.9
configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h
armv6m armv7m armv7em
Library search paths:
/sw/lib/gcc6/lib/gcc/x86_64-apple-darwin13.4.0/6.1.0
/sw/lib/gcc6/lib
/usr/lib
/usr/local/lib
Framework search paths:
/Library/Frameworks/
/System/Library/Frameworks/
 /usr/bin/nm -n /var/folders/97/4qnhjhtn25s86s9hkz0h37_mgn/T//ccpWyVcF.o
bash-3.2$ ./a.out
   1.   1.
   1.   1.
bash-3.2$

[Bug fortran/66328] Wrong initialization of derived-type DATA

2015-05-28 Thread fxcoudert at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66328

Francois-Xavier Coudert fxcoudert at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2015-05-28
 Blocks||32834
 Ever confirmed|0   |1


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32834
[Bug 32834] [Meta-bug] 'Fortran 95'-only failures