[Bug c++/51710] decltype and SFINAE

2012-01-02 Thread solodon at mail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51710 --- Comment #3 from Yuriy Solodkyy solodon at mail dot com 2012-01-02 21:35:56 UTC --- Thank you, I am aware of the workaround and that is exactly what I do in my code, however I think the current behavior is counter intuitive: 1. I get error

[Bug c++/51710] decltype and SFINAE

2011-12-30 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51710 --- Comment #1 from Jonathan Wakely redi at gcc dot gnu.org 2011-12-30 12:53:27 UTC --- I think the code is invalid because the expression decltype(foo(e1,e2)) does not occur in the immediate context of the function type It works if you replace

[Bug c++/51710] decltype and SFINAE

2011-12-30 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51710 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED