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++/44743] Parser does not recogize local variable in constant expression for member function pointers



------- Comment #3 from redi at gcc dot gnu dot org  2010-07-01 13:11 -------
(In reply to comment #2)
> However, the error message is little bit misleading, because fnc is exactly of
> the requested type but it is a local variable, IMO.

True, the reason it's not allowed is because it's not a constant.

> The question is, is the code standard conform or not?

Not.



-- 


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


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