From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 83947 invoked by alias); 15 May 2015 13:04:21 -0000 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 Received: (qmail 83891 invoked by uid 48); 15 May 2015 13:04:17 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/66159] New: bogus warning for alias-declaration using elaborated-type-specifier Date: Fri, 15 May 2015 13:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-05/txt/msg01170.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D66159 Bug ID: 66159 Summary: bogus warning for alias-declaration using elaborated-type-specifier Product: gcc Version: 5.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- struct X { }; typedef struct ::X x1; using x2 =3D struct ::X; t.cc:5:21: warning: declaration =E2=80=98struct X=E2=80=99 does not declare= anything using x2 =3D struct ::X; ^ The two forms should be equivalent. >>From gcc-bugs-return-486331-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri May 15 13:17:37 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 361 invoked by alias); 15 May 2015 13:17:37 -0000 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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 124955 invoked by uid 48); 15 May 2015 13:17:33 -0000 From: "arjen.markus895 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/50221] Allocatable string length fails with array assignment Date: Fri, 15 May 2015 13:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.6.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: arjen.markus895 at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-05/txt/msg01171.txt.bz2 Content-length: 1076 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50221 Arjen Markus changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |arjen.markus895 at gmail dot com --- Comment #4 from Arjen Markus --- I had a probably related failure with the following program using 4.9.2 under Cygwin. The program: ! chk_alloc_string.f90 -- ! Check if allocatable-length strings work in principle ! program chk_alloc_string implicit none character(len=:), dimension(:), allocatable :: strings integer :: i allocate( character(10):: strings(1:3) ) !strings = [ "A", "C", "ABCDE", "V" ] strings = [ character(len=4) :: "A", "C", "ABCDE", "V" ] write(*,*) len(strings(1)), size(strings) write(*,'(a)') strings end program chk_alloc_string The output: 4 4 ACAV CAV AV V where I expected: 4 4 A C ABCD V