gcc version 4.2.0 20060501 (experimental) > gfortran -c -O2 bug.f90 bug.f90: In function âreset_to_next_rng_substreamâ: bug.f90:11: internal compiler error: in add_virtual_operand, at tree-ssa-operands.c:1284
for : > cat bug.f90 MODULE parallel_rng_types INTEGER, PARAMETER :: dp=KIND(0.0D0) TYPE rng_stream_type REAL(KIND=dp), DIMENSION(3,2) :: bg,cg,ig LOGICAL :: antithetic,extended_precision END TYPE rng_stream_type TYPE cp_error_type INTEGER :: dum END TYPE CONTAINS SUBROUTINE reset_to_next_rng_substream(rng_stream,error) TYPE(rng_stream_type), POINTER :: rng_stream LOGICAL :: failure REAL(KIND=dp), DIMENSION(3, 2) :: u CALL cp_assert(ASSOCIATED(rng_stream),2,routineP,error,failure) IF (.NOT.failure) THEN rng_stream%bg = u rng_stream%cg = u END IF END SUBROUTINE reset_to_next_rng_substream END MODULE -- Summary: ICE: add_virtual_operand, at tree-ssa-operands.c:1284 Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jv244 at cam dot ac dot uk GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27373