[Bug fortran/61999] New: `gfc_simplify_dot_product` causes ICE for constant arguments

2014-08-02 Thread latlon90180+gcc_bugzilla at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61999

Bug ID: 61999
   Summary: `gfc_simplify_dot_product` causes ICE for constant
arguments
   Product: gcc
   Version: 4.8.2
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: fortran
  Assignee: unassigned at gcc dot gnu.org
  Reporter: latlon90180+gcc_bugzilla at gmail dot com

Following code leads `gcc-mp-4.8 (MacPorts gcc48 4.8.2_2) 4.8.2` and `GNU
Fortran (MacPorts gcc47 4.7.3_5) 4.7.3` to ICE.


```fortran
program main
   use, intrinsic:: iso_fortran_env, only: output_unit

   implicit none

   write(output_unit, *) dot_product([1, 2], [2.0, 3.0])

   stop
end program main
```

```
f951: internal compiler error: in gfc_simplify_dot_product, at
fortran/simplify.c:1886

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


[Bug fortran/52153] REAL128 gives extended precision, not quad precision

2013-08-12 Thread latlon90180+gcc_bugzilla at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52153

A. Kasahara latlon90180+gcc_bugzilla at gmail dot com changed:

   What|Removed |Added

 CC||latlon90180+gcc_bugzilla@gm
   ||ail.com

--- Comment #8 from A. Kasahara latlon90180+gcc_bugzilla at gmail dot com ---
Is there any progress on this?
REAL128 of gfortran4.8 is still 10.


[Bug fortran/56575] New: An invalid OO code causes ICE

2013-03-08 Thread latlon90180+gcc_bugzilla at gmail dot com


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



 Bug #: 56575

   Summary: An invalid OO code causes ICE

Classification: Unclassified

   Product: gcc

   Version: 4.8.0

Status: UNCONFIRMED

  Severity: normal

  Priority: P3

 Component: fortran

AssignedTo: unassig...@gcc.gnu.org

ReportedBy: latlon90180+gcc_bugzi...@gmail.com





Dear all,



An invalid code shown below causes ICE on gfortran 4.8.0 and gfortran 4.6.3.

gfortran 4.5.3 produces proper error messages for the code.



Sincerely,

Amato



$ cat ice.F90

module lib_container

  implicit none



  type:: Object

  end type Object



  type:: Container

class(Object):: v

  end type Container



contains



  subroutine proc(self)

class(Container), intent(inout):: self

  end subroutine proc

end module lib_container



-4.8-



$ /usr/lib/gcc-snapshot/bin/gfortran ice.F90  -c

f951: internal compiler error: Segmentation fault

Please submit a full bug report,

with preprocessed source if appropriate.

See file:///usr/share/doc/gcc-snapshot/README.Bugs for instructions.



$ /usr/lib/gcc-snapshot/bin/gfortran --version

GNU Fortran (Ubuntu/Linaro 20120314-0ubuntu2) 4.8.0 20120314 (experimental)

[trunk revision 185382]

Copyright (C) 2012 Free Software Foundation, Inc.



GNU Fortran comes with NO WARRANTY, to the extent permitted by law.

You may redistribute copies of GNU Fortran

under the terms of the GNU General Public License.

For more information about these matters, see the file named COPYING



-4.6-



$ gfortran-4.6 ice.F90 -c

f951: internal compiler error: Segmentation fault

Please submit a full bug report,

with preprocessed source if appropriate.

See file:///share/doc/gcc-4.6/README.Bugs for instructions.



$ gfortran-4.6 --version

GNU Fortran (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

Copyright (C) 2011 Free Software Foundation, Inc.



GNU Fortran comes with NO WARRANTY, to the extent permitted by law.

You may redistribute copies of GNU Fortran

under the terms of the GNU General Public License.

For more information about these matters, see the file named COPYING



-4.5-



$ gfortran-4.5 ice.F90 -c

ice.F90:8.21:



class(Object):: v

 1

Error: Component 'v' with CLASS at (1) must be allocatable or pointer

ice.F90:8.21:



class(Object):: v

 1

Error: Component 'v' with CLASS at (1) must be allocatable or pointer



$ gfortran-4.5 --version

GNU Fortran (Ubuntu/Linaro 4.5.3-12ubuntu2) 4.5.3

Copyright (C) 2010 Free Software Foundation, Inc.



GNU Fortran comes with NO WARRANTY, to the extent permitted by law.

You may redistribute copies of GNU Fortran

under the terms of the GNU General Public License.

For more information about these matters, see the file named COPYING


[Bug fortran/55852] [4.6/4.7/4.8 regression] internal compiler error: in gfc_build_intrinsic_call, at fortran/expr.c:4647

2013-02-13 Thread latlon90180+gcc_bugzilla at gmail dot com


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



--- Comment #16 from A. Kasahara latlon90180+gcc_bugzilla at gmail dot com 
2013-02-13 19:21:33 UTC ---

Thank you for the fix!


[Bug fortran/55852] New: internal compiler error: in gfc_build_intrinsic_call, at fortran/expr.c:4647

2013-01-02 Thread latlon90180+gcc_bugzilla at gmail dot com


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



 Bug #: 55852

   Summary: internal compiler error: in gfc_build_intrinsic_call,

at fortran/expr.c:4647

Classification: Unclassified

   Product: gcc

   Version: 4.8.0

Status: UNCONFIRMED

  Severity: normal

  Priority: P3

 Component: fortran

AssignedTo: unassig...@gcc.gnu.org

ReportedBy: latlon90180+gcc_bugzi...@gmail.com





Compilation of the following program causes internal compiler error:



!---

program bug

  implicit none



  Real, allocatable:: a(:)



  allocate(a(1:3))



  print*, ubound((a), 1) ! Bad

! print*, ubound(a, 1)   ! OK

! print*, lbound((a), 1) ! OK

! print*, lbound(a, 1)   ! OK



  stop

end program bug

!



$ gfortran-mp-4.8 -Wall -Wextra bug.F90

f951: internal compiler error: in gfc_build_intrinsic_call, at

fortran/expr.c:4647



f951: internal compiler error: Abort trap

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

Abort trap



$ gfortran-mp-4.8 -v

Using built-in specs.

COLLECT_GCC=gfortran-mp-4.8

COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin10/4.8.0/lto-wrapper

Target: x86_64-apple-darwin10

Configured with: ../gcc-4.8-20121223/configure --prefix=/opt/local

--build=x86_64-apple-darwin10

--enable-languages=c,c++,objc,obj-c++,fortran,java

--libdir=/opt/local/lib/gcc48 --includedir=/opt/local/include/gcc48

--infodir=/opt/local/share/info --mandir=/opt/local/share/man

--datarootdir=/opt/local/share/gcc-4.8 --with-local-prefix=/opt/local

--with-system-zlib --disable-nls --program-suffix=-mp-4.8

--with-gxx-include-dir=/opt/local/include/gcc48/c++/ --with-gmp=/opt/local

--with-mpfr=/opt/local --with-mpc=/opt/local --with-ppl=/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

gcc48 4.8-20121223_0'

Thread model: posix

gcc version 4.8.0 20121223 (experimental) (MacPorts gcc48 4.8-20121223_0)