[Bug c++/54905] invalid use of qualified-name 'std::cout'

2012-10-11 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54905 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug c++/54905] invalid use of qualified-name 'std::cout'

2012-10-11 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54905 --- Comment #5 from Andrew Pinski 2012-10-11 21:52:06 UTC --- The real testcase that shows the issue with GCC: struct f { }; f g; struct A { A(f& s); }; int main() { A(g), 1; } --- CUT --- The other testcase I thin

[Bug c++/54905] invalid use of qualified-name 'std::cout'

2012-10-11 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54905 Andrew Pinski changed: What|Removed |Added Severity|blocker |normal --- Comment #4 from Andr

[Bug c++/54905] invalid use of qualified-name 'std::cout'

2012-10-11 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54905 --- Comment #3 from Andrew Pinski 2012-10-11 21:45:28 UTC --- (In reply to comment #2) > Looks like GCC is getting confused if the constructor is going to be a > function > declaration or not. s/function/variable/ Here is a testcase

[Bug c++/54905] invalid use of qualified-name 'std::cout'

2012-10-11 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54905 --- Comment #2 from Andrew Pinski 2012-10-11 21:41:13 UTC --- Looks like GCC is getting confused if the constructor is going to be a function declaration or not.

[Bug c++/54905] invalid use of qualified-name 'std::cout'

2012-10-11 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54905 --- Comment #1 from Marc Glisse 2012-10-11 21:39:01 UTC --- #include struct A { A(std::ostream& s); }; int main() { A(std::cout); }