This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14031] New: Resolution of Core DR 226 (WP) not implemented
- From: "stl at caltech dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Feb 2004 16:48:33 -0000
- Subject: [Bug c++/14031] New: Resolution of Core DR 226 (WP) not implemented
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Core DR 226 has WP status - see
http://std.dkuug.dk/jtc1/sc22/wg21/docs/cwg_defects.html
I was under the impression that g++ attempts to implement DRs with WP status
(e.g. see PR12657). So, DR 226 should be implemented.
Test case:
[02/05/2004 Thu 08:47.28 AM stl@nuwen ~]
> cat dr226.cc
template <typename T = int> void foo() { }
[02/05/2004 Thu 08:47.31 AM stl@nuwen ~]
> g++ -Wall -W dr226.cc
dr226.cc:1: error: default template arguments may not be used in function
templates
[02/05/2004 Thu 08:47.38 AM stl@nuwen ~]
> g++ --version
g++ (GCC) 3.3.2
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[02/05/2004 Thu 08:47.44 AM stl@nuwen ~]
--
Summary: Resolution of Core DR 226 (WP) not implemented
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: stl at caltech dot edu
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14031