This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54905] invalid use of qualified-name 'std::cout'
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 11 Oct 2012 21:52:06 +0000
- Subject: [Bug c++/54905] invalid use of qualified-name 'std::cout'
- Auto-submitted: auto-generated
- References: <bug-54905-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54905
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> 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 think was invalid, the one above I think is valid code and
should not be rejected.