decltype and std::integral_constant
The following translation unit seems to show a bug exhibited by 4.4.3 and 4.5. #include template struct plus : std::integral_constant< decltype(X::value + Y::value), X::value + Y::value > { }; int main(int argc, char* argv[]) {
[Bug c++/54890] New: Incorrect SFINAE Rejection
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54890 Bug #: 54890 Summary: Incorrect SFINAE Rejection Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal Priority: P3