This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16582] Wrong diagnostic when using "&a[1]" as template argument
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jul 2004 03:36:37 -0000
- Subject: [Bug c++/16582] Wrong diagnostic when using "&a[1]" as template argument
- References: <20040716015746.16582.giovannibajo@libero.it>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-07-16 03:36 -------
Confirmed. This is about the worst message I've seen in a long
while :)
Here's what icc says:
g/x> icc -c -Xc -ansi x.cc
x.cc(8): error: this operator is not allowed in a template argument expression
X<int, &p[0]> x3; // ERROR
^
compilation aborted for x.cc (code 2)
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-07-16 03:36:36
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16582