From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 106815 invoked by alias); 26 Feb 2015 12:39:00 -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 106761 invoked by uid 48); 26 Feb 2015 12:38:57 -0000 From: "pit at shgn dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/65221] New: typedef-name identifier not resolved in static member instantiation Date: Thu, 26 Feb 2015 13:31: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: 4.9.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pit at shgn dot de X-Bugzilla-Status: UNCONFIRMED 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 bug_severity priority component assigned_to reporter 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-02/txt/msg02916.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65221 Bug ID: 65221 Summary: typedef-name identifier not resolved in static member instantiation Product: gcc Version: 4.9.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: pit at shgn dot de Consider the following minimal example: template< typename A > struct X { using this_type =3D X; // typedef X this_type; static this_type inst; }; template< typename A > X X::inst; g++ 4.9.1 (Debian 4.9.1-19) produces the following error: $ g++ --std=3Dc++11 -c test.cpp test.cpp:10:12: error: conflicting declaration =E2=80=98X X::inst=E2= =80=99 X X::inst; ^ test.cpp:6:20: note: previous declaration as =E2=80=98X::this_type X:= :inst=E2=80=99 static this_type inst; ^ test.cpp:10:12: error: declaration of =E2=80=98X::this_type X::inst= =E2=80=99 outside of class is not definition [-fpermissive] X X::inst; I expected the compiler to resolve the typedef-name from the alias-declaration when instantiating the static member. If we use this_type instead of the type directly: template< typename A > const typename X::this_type X::inst; the code compiles again. I assume that gcc is unable to map X to the alias-declaration this_type. Commenting out the alias declaration and using the typedef line solves the problem. The standard however states in =C2=A77.1.3 (2): A typedef-name can also be introduced by an alias-declaration. The identifier following the using keyword becomes a typedef-name and the optional attribute-specifier-seq following the identifier appertains to that typedef-name. It has the same semantics as if it were introduced by the typedef specifier. In particular, it does not define a new type and it shall not appear in the type-id. >>From gcc-bugs-return-478585-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 26 12:39:39 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 109408 invoked by alias); 26 Feb 2015 12:39:39 -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 109135 invoked by uid 48); 26 Feb 2015 12:39:35 -0000 From: "alalaw01 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/64997] [AArch64] Illegal EON on SIMD registers Date: Thu, 26 Feb 2015 13:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alalaw01 at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: alalaw01 at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution 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-02/txt/msg02917.txt.bz2 Content-length: 403 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64997 alalaw01 at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #3 from alalaw01 at gcc dot gnu.org --- Fixed r220969