[Bug c++/60852] [4.8/4.9/4.10 Regression] boost::has_complement of enum class does not compile
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Apr 16 09:35:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60852
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Both clang and G++ reject:
static const int value = sizeof ~make<E>();
Whereas clang accepts (and G++ rejects) the same expression using a dependent
type:
template <typename Rhs> struct H
{
static const int value = sizeof ~make<Rhs>();
};
Clang constructs a temporary D and applies operator~ to that temporary
More information about the Gcc-bugs
mailing list