[Bug c++/12635] wrong interpretation of typename with constructor delimiters
ehrhardt at mathematik dot uni-ulm dot de
gcc-bugzilla@gcc.gnu.org
Thu Oct 16 14:40:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12635
ehrhardt at mathematik dot uni-ulm dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From ehrhardt at mathematik dot uni-ulm dot de 2003-10-16 14:40 -------
In this line:
Value_(LazyBind<T, Some>::type()(E))
LazyBind<T,Some> is template paramter dependant. In this case the
compiler must assume that the member type is not a type unless an
explicit typename keyword is given. You have to write:
Value_(typename LazyBind<T, Some>::type()(E))
instead. regards Christian
More information about the Gcc-bugs
mailing list