------- Comment #1 from fxcoudert at gcc dot gnu dot org 2005-11-26 19:03 ------- ICE on this one, may be related to PR18769. Still a diagnostic bug too.
## g95 ## In file foo.f90:3 integer, parameter, dimension(2,2) :: B = TRANSPOSE(A) 1 Error: Function 'transpose' cannot appear in an initialization expression at (1) ## Intel ## fortcom: Error: foo.f90, line 3: This intrinsic function is invalid in constant expressions. [TRANSPOSE] integer, parameter, dimension(2,2) :: B = TRANSPOSE(A) --------------------------------------------^ compilation aborted for foo.f90 (code 1) ## Portland ## PGF90-S-0459-Target of NULL() assignment must be a pointer (foo.f90: 3) PGF90-S-0066-Too few data constants in initialization statement (foo.f90: 3) 0 inform, 0 warnings, 2 severes, 0 fatal for m ## Sun ## module M ^ "foo.f90", Line = 1, Column = 8: ERROR: The compiler has detected errors in module "M". No module information file will be created for this module. integer, parameter, dimension(2,2) :: B = TRANSPOSE(A) ^ "foo.f90", Line = 3, Column = 45: ERROR: Intrinsic function "TRANSPOSE" is not allowed in an initialization expression. -- fxcoudert at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |ice-on-invalid-code Last reconfirmed|0000-00-00 00:00:00 |2005-11-26 19:03:39 date| | Summary|better diagnostic needed |TRANSPOSE not allowed in | |initialisation expression http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25049