public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/25049] TRANSPOSE not allowed in initialisation expression
Date: Sat, 26 Nov 2005 19:03:00 -0000	[thread overview]
Message-ID: <20051126190339.30608.qmail@sourceware.org> (raw)
In-Reply-To: <bug-25049-6642@http.gcc.gnu.org/bugzilla/>



------- 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


  reply	other threads:[~2005-11-26 19:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-26 17:45 [Bug fortran/25049] New: better diagnostic needed jv244 at cam dot ac dot uk
2005-11-26 19:03 ` fxcoudert at gcc dot gnu dot org [this message]
2006-06-20  4:31 ` [Bug fortran/25049] TRANSPOSE not allowed in initialisation expression pault at gcc dot gnu dot org
2006-06-23  4:47 ` pault at gcc dot gnu dot org
2006-06-23 15:40 ` pault at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051126190339.30608.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).