From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21989 invoked by alias); 30 Apr 2015 09:04:36 -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 21925 invoked by uid 48); 30 Apr 2015 09:04:33 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/65943] New: template keyword required for base-specifier that names member of the current instantiation Date: Thu, 30 Apr 2015 09: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: rejects-valid 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-04/txt/msg02589.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65943 Bug ID: 65943 Summary: template keyword required for base-specifier that names member of the current instantiation Product: gcc Version: 5.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- template struct X { template struct Base; template struct Data; }; template template struct X::Data : X::Base { }; This fails to compile: f.cc:9:33: error: =E2=80=98typename X::Base=E2=80=99 names =E2=80=98temp= late template struct X::Base=E2=80=99, which is not a type struct X::Data : X::Base ^ f.cc:9:27: error: =E2=80=98typename X::Base=E2=80=99 names =E2=80=98temp= late template struct X::Base=E2=80=99, which is not a type struct X::Data : X::Base ^ f.cc:10:1: error: expected class-name before =E2=80=98{=E2=80=99 token { }; ^ Clang and EDG accept it. It compiles if the base-specifier is changed to X::template Base, but= I think the addition of "but the name is not a member of the current instantiation" to C++11 14.2 [temp.names] p4 should make it valid. In any case, http://open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#1710 w= ill definitely make it valid. See also http://open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#1812 and http://open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#314 >>From gcc-bugs-return-485039-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Apr 30 09:05:10 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 23585 invoked by alias); 30 Apr 2015 09:05:10 -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 23513 invoked by uid 48); 30 Apr 2015 09:05:07 -0000 From: "paolo.carlini at oracle dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/59955] Segmentation fault on (re?)defining a struct template as function template, when inside a struct tempate Date: Thu, 30 Apr 2015 09:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.3 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: paolo.carlini at oracle dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: paolo.carlini at oracle dot com X-Bugzilla-Target-Milestone: 6.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution target_milestone 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-04/txt/msg02591.txt.bz2 Content-length: 488 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59955 Paolo Carlini changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |6.0 --- Comment #7 from Paolo Carlini --- Done.