[Bug c++/10118] Bad diagnostic with cast in template argument expression

gdr at integrable-solutions dot net gcc-bugzilla@gcc.gnu.org
Fri Aug 20 07:12:00 GMT 2004


------- Additional Comments From gdr at integrable-solutions dot net  2004-08-20 07:12 -------
Subject: Re:  Bad diagnostic with cast in template argument expression

"pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:

| Slightly error message change:
| pr10118.cc:8: error: `A::foo()' cannot appear in a constant-expression

This is wrong and I know why.  The code cp/error.c is too contrived to
fix it properly.  It is better to rely on the code in
cp/cxx-pretty-print.c to fix it.

| pr10118.cc:8: error: `&' cannot appear in a constant-expression

This does nto make any sense.

-- Gaby


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10118



More information about the Gcc-bugs mailing list