[Bug c++/11993] [3.4 regression] gcc finds passing reference of template argument as template argument invalid
mmitchel at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Aug 30 00:34:00 GMT 2003
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.
More information about the Gcc-bugs
mailing list