mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-08 10:50:47 +08:00
re PR fortran/48972 (OPEN with Unicode file name)
2011-05-12 Tobias Burnus <burnus@net-b.de> PR fortran/48972 * resolve.c (resolve_intrinsic): Don't resolve module intrinsics multiple times. 2011-05-12 Tobias Burnus <burnus@net-b.de> PR fortran/48972 * gfortran.dg/iso_c_binding_compiler_3.f90: New. From-SVN: r173708
This commit is contained in:
parent
16c20b0a55
commit
13157033d4
@ -1,3 +1,9 @@
|
||||
2011-05-12 Tobias Burnus <burnus@net-b.de>
|
||||
|
||||
PR fortran/48972
|
||||
* resolve.c (resolve_intrinsic): Don't resolve module
|
||||
intrinsics multiple times.
|
||||
|
||||
2011-05-11 Tobias Burnus <burnus@net-b.de>
|
||||
|
||||
PR fortran/48889
|
||||
|
@ -1441,6 +1441,10 @@ resolve_intrinsic (gfc_symbol *sym, locus *loc)
|
||||
if (sym->formal)
|
||||
return SUCCESS;
|
||||
|
||||
/* Already resolved. */
|
||||
if (sym->from_intmod && sym->ts.type != BT_UNKNOWN)
|
||||
return SUCCESS;
|
||||
|
||||
/* We already know this one is an intrinsic, so we don't call
|
||||
gfc_is_intrinsic for full checking but rather use gfc_find_function and
|
||||
gfc_find_subroutine directly to check whether it is a function or
|
||||
|
@ -1,3 +1,8 @@
|
||||
2011-05-12 Tobias Burnus <burnus@net-b.de>
|
||||
|
||||
PR fortran/48972
|
||||
* gfortran.dg/iso_c_binding_compiler_3.f90: New.
|
||||
|
||||
2011-05-12 Jason Merrill <jason@redhat.com>
|
||||
|
||||
* g++.dg/cpp0x/constexpr-incomplete2.C: New.
|
||||
|
27
gcc/testsuite/gfortran.dg/iso_c_binding_compiler_3.f90
Normal file
27
gcc/testsuite/gfortran.dg/iso_c_binding_compiler_3.f90
Normal file
@ -0,0 +1,27 @@
|
||||
! { dg-do compile }
|
||||
! { dg-options "-Wall" }
|
||||
!
|
||||
! PR fortran/45823
|
||||
!
|
||||
! We used to warn about
|
||||
! "Type specified for intrinsic function" for this file
|
||||
!
|
||||
|
||||
use iso_c_binding
|
||||
use iso_Fortran_env
|
||||
implicit none
|
||||
intrinsic sin
|
||||
real :: x = 3.4
|
||||
print *, sin(x), c_sizeof(c_int), compiler_options(), compiler_version()
|
||||
end
|
||||
|
||||
|
||||
module test_mod
|
||||
use iso_fortran_env
|
||||
end module test_mod
|
||||
|
||||
subroutine test
|
||||
use test_mod
|
||||
end subroutine test
|
||||
|
||||
! { dg-final { cleanup-modules "test_mod" } }
|
Loading…
x
Reference in New Issue
Block a user