From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5321 invoked by alias); 31 May 2010 16:16:47 -0000 Received: (qmail 5251 invoked by uid 48); 31 May 2010 16:16:34 -0000 Date: Mon, 31 May 2010 16:16:00 -0000 Subject: [Bug fortran/44346] New: gfortran accepts illegal arguments to intrinsics X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "zeccav at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-05/txt/msg03346.txt.bz2 gfortran should not accept the following: character s,ss(1),pad(1),order(1) integer nn(7) c gfortran should complain that POS and LEN are negative print *,ibits(i,-1,-1) c POS+LEN>BIT_SIZE(i) print *,ibits(i,100,100) c 30+3>32 call mvbits(n,30,3,n,1) c 31+2>32 call mvbits(n,30,2,n,31) c LEN negative call mvbits(n,30,-2,n,30) c TOPOS negative call mvbits(n,30,2,n,-3) c FROMPOS negative call mvbits(n,-1,2,n,3) end Best regards Vittorio Zecca -- Summary: gfortran accepts illegal arguments to intrinsics Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: zeccav at gmail dot com GCC host triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44346