This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11993] [3.4 regression] gcc finds passing reference of template argument as template argument invalid
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Aug 2003 00:34:52 -0000
- Subject: [Bug c++/11993] [3.4 regression] gcc finds passing reference of template argument as template argument invalid
- References: <20030820130921.11993.stefaandr@hotmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11993
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From mmitchel at gcc dot gnu dot org 2003-08-30 00:34 -------
This code is invalid.
The standard is very clear about what form a non-type template argument may
take, and address-of-nontype-template-parameter is not one of the allowed cases.
See [temp.arg.nontype].
Arguably, this is a defect, but there has been no DR filed with the committee
about this issue.