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

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Oct 11 21:45:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54905

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 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 without the include:
struct f{};

namespace s{
f g;
}
struct A
{
    A(f& s);
};

int main() {
    A(f::g);
}



More information about the Gcc-bugs mailing list