This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/10118] Bad diagnostic with cast in template argument expression
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Aug 2004 06:52:50 -0000
- Subject: [Bug c++/10118] Bad diagnostic with cast in template argument expression
- References: <20030317033600.10118.philippeb@videotron.ca>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-20 06:52 -------
Slightly error message change:
pr10118.cc:8: error: `A::foo()' cannot appear in a constant-expression
pr10118.cc:8: error: `&' cannot appear in a constant-expression
pr10118.cc:8: error: a cast to a type other than an integral or enumeration type cannot appear in a
constant-expression
pr10118.cc:8: error: template argument 2 is invalid
pr10118.cc:8: error: invalid type in declaration before ';' token
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2004-05-21 03:50:25 |2004-08-20 06:52:50
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10118