[Bug c++/58713] error: cannot bind ‘std::ostream {aka std::basic_ostreamchar}’ lvalue to ‘std::basic_ostreamchar’

2013-10-14 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58713 --- Comment #3 from Daniel Krügler daniel.kruegler at googlemail dot com --- (In reply to Jonathan Wakely from comment #1) I've tried to improve it in the past, but I think there's no easy way to do it. A possible fix might be to change the

[Bug c++/58713] error: cannot bind ‘std::ostream {aka std::basic_ostreamchar}’ lvalue to ‘std::basic_ostreamchar’

2013-10-14 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58713 --- Comment #4 from Marc Glisse glisse at gcc dot gnu.org --- If I try to sfinae-out this function based on osx being well-formed, I get an error that template instantiation depth exceeds maximum of 900 (even for a valid cout42), because even if

[Bug c++/58713] error: cannot bind ‘std::ostream {aka std::basic_ostreamchar}’ lvalue to ‘std::basic_ostreamchar’

2013-10-14 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58713 --- Comment #5 from Daniel Krügler daniel.kruegler at googlemail dot com --- (In reply to Marc Glisse from comment #4) If I try to sfinae-out this function based on osx being well-formed, I get an error that template instantiation depth exceeds

[Bug c++/58713] error: cannot bind ‘std::ostream {aka std::basic_ostreamchar}’ lvalue to ‘std::basic_ostreamchar’

2013-10-14 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58713 --- Comment #6 from Daniel Krügler daniel.kruegler at googlemail dot com --- (In reply to Daniel Krügler from comment #5) Thanks for your test, Marc. I will reflect upon the problem in a bit more detail My current guess is that my suggested

[Bug c++/58713] error: cannot bind ‘std::ostream {aka std::basic_ostreamchar}’ lvalue to ‘std::basic_ostreamchar’

2013-10-14 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58713 --- Comment #7 from Jonathan Wakely redi at gcc dot gnu.org --- (In reply to Daniel Krügler from comment #3) guess is that this would also improve the diagnostics in this case, is that right? Even if it worked (which it doesn't, as Marc also

[Bug c++/58713] error: cannot bind ‘std::ostream {aka std::basic_ostreamchar}’ lvalue to ‘std::basic_ostreamchar’

2013-10-13 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58713 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Keywords||diagnostic ---

[Bug c++/58713] error: cannot bind ‘std::ostream {aka std::basic_ostreamchar}’ lvalue to ‘std::basic_ostreamchar’

2013-10-13 Thread ali.baharev at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58713 --- Comment #2 from Ali Baharev ali.baharev at gmail dot com --- Why do the 32 and 64 bit versions behave differently? They don't. I think maybe you forgot to use -std=c++11 in the first case? Yes, that's what happened. Sorry, my mistake.