decltype and std::integral_constant

2010-04-01 Thread pmenso57
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

2012-10-10 Thread pmenso57 at comcast dot net
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