This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/44743] Parser does not recogize local variable in constant expression for member function pointers
- From: "redi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jul 2010 13:29:05 -0000
- Subject: [Bug c++/44743] Parser does not recogize local variable in constant expression for member function pointers
- References: <bug-44743-19300@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from redi at gcc dot gnu dot org 2010-07-01 13:29 -------
Note that the error isn't saying the type is wrong, it says it must be of the
form `&X::Y' which is a constant expression and is different to a variable with
the same value as &X::Y
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44743