This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/16582] Wrong diagnostic when using "&a[1]" as template argument


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]