From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 65577 invoked by alias); 5 Oct 2015 21:44:02 -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 65527 invoked by uid 55); 5 Oct 2015 21:43:59 -0000 From: "paolo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/53856] Default argument allowed on member defined outside of class template Date: Mon, 05 Oct 2015 21:44: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.0 X-Bugzilla-Keywords: accepts-invalid, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: paolo at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: 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: 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-10/txt/msg00369.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53856 --- Comment #3 from paolo at gcc dot gnu.org --- Author: paolo Date: Mon Oct 5 21:43:26 2015 New Revision: 228501 URL: https://gcc.gnu.org/viewcvs?rev=228501&root=gcc&view=rev Log: /cp 2015-10-05 Paolo Carlini PR c++/53856 * pt.c (check_default_tmpl_args): Per [temp.param]/9, do not reject default template arguments in out of class definitions of members of non-template classes. /testsuite 2015-10-05 Paolo Carlini PR c++/53856 * g++.dg/template/defarg19.C: New. * g++.dg/template/defarg20.C: Likewise. Added: trunk/gcc/testsuite/g++.dg/template/defarg19.C trunk/gcc/testsuite/g++.dg/template/defarg20.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog